Files
codeocean/db/migrate/20170228165741_add_search.rb
2017-03-21 10:31:33 +01:00

11 lines
248 B
Ruby

class AddSearch < ActiveRecord::Migration
def change
create_table :searches do |t|
t.belongs_to :exercise, null: false
t.belongs_to :user, polymorphic: true, null: false
t.string :search
t.timestamps
end
end
end