Micrate::Cli
. For this example, we'll create bin/micrate
in the root of our project where we're using Granite ORM. This assumes you're exporting the DATABASE_URL
for your project and an environment variable instead of using a database.yml
.$ bin/micrate help
=> should output help commands.posts
table in our database.db/migrations
. Let's open it and define our posts schema.posts
table in your database ready to query.