2013-01-07 09:04:09 +01:00
|
|
|
class CreateRoomsTable < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :rooms do |t|
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :guid, null: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.references :conference
|
2014-07-21 14:49:05 +02:00
|
|
|
t.string :name, null: false
|
2013-01-07 09:04:09 +01:00
|
|
|
t.integer :size
|
2014-07-21 14:49:05 +02:00
|
|
|
t.boolean :public, default: true
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
drop_table :rooms
|
|
|
|
|
end
|
|
|
|
|
end
|