Files
codeocean/db/migrate/20170228165741_add_search.rb

11 lines
253 B
Ruby

class AddSearch < ActiveRecord::Migration[4.2]
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