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

13 lines
272 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-07 16:06:01 -04:00
t.timestamps
end
end
end