mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
15 lines
316 B
Ruby
15 lines
316 B
Ruby
class CreateRoomsTable < ActiveRecord::Migration
|
|
def up
|
|
create_table :rooms do |t|
|
|
t.string :guid, :null => false
|
|
t.references :conference
|
|
t.string :name, :null => false
|
|
t.integer :size
|
|
t.boolean :public, :default => true
|
|
end
|
|
end
|
|
|
|
def down
|
|
drop_table :rooms
|
|
end
|
|
end
|