13 lines
284 B
Ruby
13 lines
284 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|