Skip to content

Instantly share code, notes, and snippets.

@bilby91
Created March 12, 2018 23:21
Show Gist options
  • Save bilby91/98fbceeb6d82be91fba786dcec81c368 to your computer and use it in GitHub Desktop.
Save bilby91/98fbceeb6d82be91fba786dcec81c368 to your computer and use it in GitHub Desktop.
Hanami::Model.migration do
change do
create_table :lists do
primary_key :id
column :name, String, null: false
column :created_at, DateTime, null: false
column :updated_at, DateTime, null: false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment