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

17 lines
398 B
Ruby

# frozen_string_literal: true
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.integer :sessions, index: true, default: 0
t.datetime :last_session, index: true
t.timestamps
end
end
end