This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/db/migrate/20180504131705_create_rooms.rb

16 lines
401 B
Ruby
Raw Normal View History

2018-05-07 16:06:01 -04:00
class CreateRooms < ActiveRecord::Migration[5.0]
def change
create_table :rooms do |t|
t.belongs_to :user, index: true
2018-05-29 15:28:29 -04:00
t.string :name, index: true
2018-05-07 16:06:01 -04:00
t.string :uid, index: true
2018-05-29 15:28:29 -04:00
t.string :bbb_id, index: true
2018-05-31 15:04:18 -04:00
t.string :icon, index: true
2018-06-01 11:55:52 -04:00
t.integer :sessions, index: true, default: 0
2018-06-07 15:52:42 -04:00
t.datetime :last_session, index: true
2018-05-07 16:06:01 -04:00
t.timestamps
end
end
end