socialforge/db/migrate/20161221060341_create_conte...

15 lines
360 B
Ruby

class CreateContestActivities < ActiveRecord::Migration
def change
create_table :contest_activities do |t|
t.references :user
t.references :contest
t.integer :contest_act_id
t.string :contest_act_type
t.timestamps
end
add_index :contest_activities, :user_id
add_index :contest_activities, :contest_id
end
end