Skip to content

Instantly share code, notes, and snippets.

@balvig
Created April 24, 2019 06:55
Show Gist options
  • Save balvig/45db44c9a5243bc58f9ab12a86139b2f to your computer and use it in GitHub Desktop.
Save balvig/45db44c9a5243bc58f9ab12a86139b2f to your computer and use it in GitHub Desktop.
class CreateEvents < ActiveRecord::Migration[5.2]
def change
create_table :events do |t|
t.references :visitor, null: false
t.references :recipe, null: false
t.integer :action, null: false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment