parsley/db/migrate/20160707011314_create_logs.rb

14 lines
274 B
Ruby
Raw Normal View History

2016-10-14 12:19:00 -05:00
class CreateLogs < ActiveRecord::Migration[4.2]
2016-07-06 21:00:35 -05:00
def change
create_table :logs do |t|
t.integer :user_id
t.integer :recipe_id
t.integer :source_recipe_id
t.datetime :date
t.integer :rating
t.timestamps null: false
end
end
end