clarion/db/migrate/20150901074818_create_volun...

17 lines
408 B
Ruby
Raw Normal View History

2015-09-01 11:09:26 +03:00
class CreateVolunteerTeams < ActiveRecord::Migration
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