greenlight/db/migrate/20180504131705_create_rooms.rb

15 lines
345 B
Ruby

class CreateRooms < ActiveRecord::Migration[5.0]
def change
create_table :rooms do |t|
t.belongs_to :user, index: true
t.string :name, index: true
t.string :uid, index: true
t.string :bbb_id, index: true
t.string :icon, index: true
t.integer :sessions, index: true
t.timestamps
end
end
end