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

31 lines
803 B
Ruby

class CreateEventsTable < ActiveRecord::Migration
def up
create_table :events do |t|
t.string :guid, null: false
t.references :conference
t.references :event_type
t.string :title, null: false
t.string :subtitle
t.integer :time_slots
t.string :state, null: false, default: "new"
t.string :progress, null: false, default: "new"
t.string :language
t.datetime :start_time
t.text :abstract
t.text :description
t.boolean :public, default: true
t.string :logo_file_name
t.string :logo_content_type
t.integer :logo_file_size
t.datetime :logo_updated_at
t.text :proposal_additional_speakers
t.references :track
t.references :room
t.timestamps
end
end
def down
end
end