osem-fcy/db/migrate/20121223115038_create_conferences_table.rb
2014-07-21 15:05:58 +02:00

24 lines
629 B
Ruby

class CreateConferencesTable < ActiveRecord::Migration
def up
create_table :conferences do |t|
t.string :guid, null: false
t.string :title, null: false
t.string :short_title, null: false
t.string :social_tag
t.string :contact_email, null: false
t.string :timezone, null: false
t.string :html_export_path
t.date :start_date, null: false
t.date :end_date, null: false
t.boolean :cfp_open, default: false
t.boolean :registration_open, default: false
t.references :venue
t.timestamps
end
end
def down
drop_table :conferences
end
end