2019-04-28 11:56:16 +03:00
|
|
|
class CreateVolunteerTeams < ActiveRecord::Migration[4.2]
|
2015-09-01 11:09:26 +03:00
|
|
|
def up
|
|
|
|
create_table :volunteer_teams do |t|
|
|
|
|
t.references :conference, index: true, foreign_key: true
|
|
|
|
t.string :color
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
VolunteerTeam.create_translation_table! name: :string, description: :text
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :volunteer_teams
|
|
|
|
VolunteerTeam.drop_translation_table!
|
|
|
|
end
|
|
|
|
end
|