14 lines
362 B
Ruby
14 lines
362 B
Ruby
class CreateContestMemberRoles < ActiveRecord::Migration
|
|
def change
|
|
create_table :contest_member_roles do |t|
|
|
t.references :contest_member
|
|
t.references :role
|
|
t.boolean :is_current, :default => true
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :contest_member_roles, :contest_member_id
|
|
add_index :contest_member_roles, :role_id
|
|
end
|
|
end
|