2013-01-07 09:04:09 +01:00
|
|
|
class CreateConferencesTable < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :conferences do |t|
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :guid, null: false
|
|
|
|
|
t.string :title, null: false
|
|
|
|
|
t.string :short_title, null: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.string :social_tag
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :contact_email, null: false
|
|
|
|
|
t.string :timezone, null: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.string :html_export_path
|
2014-07-21 14:49:05 +02:00
|
|
|
t.date :start_date, null: false
|
|
|
|
|
t.date :end_date, null: false
|
|
|
|
|
t.boolean :cfp_open, default: false
|
|
|
|
|
t.boolean :registration_open, default: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.references :venue
|
|
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
drop_table :conferences
|
|
|
|
|
end
|
|
|
|
|
end
|