2013-02-02 16:43:47 +01:00
|
|
|
class CreateDietaryChoicesTable < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :dietary_choices do |t|
|
|
|
|
|
t.references :conference
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :title, null: false
|
2013-02-02 16:43:47 +01:00
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
drop_table :dietary_choices
|
|
|
|
|
end
|
|
|
|
|
end
|