Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # frozen_string_literal: true |
||
19 | class CreateRooms < ActiveRecord::Migration[5.0] |
||
20 | def change |
||
21 | create_table :rooms do |t| |
||
22 | t.belongs_to :user, index: true |
||
23 | t.string :name, index: true |
||
24 | t.string :uid, index: true |
||
25 | t.string :bbb_id, index: true |
||
26 | t.integer :sessions, index: true, default: 0 |
||
27 | t.datetime :last_session, index: true |
||
28 | |||
29 | t.timestamps |
||
30 | end |
||
31 | end |
||
32 | end |
||
33 |