| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # frozen_string_literal: true |
||
| 19 | class CreateUsers < ActiveRecord::Migration[5.0] |
||
| 20 | def change |
||
| 21 | create_table :users do |t| |
||
| 22 | t.belongs_to :room, index: true |
||
| 23 | t.string :provider |
||
| 24 | t.string :uid |
||
| 25 | t.string :name |
||
| 26 | t.string :username |
||
| 27 | t.string :email |
||
| 28 | t.string :social_uid |
||
| 29 | t.string :image |
||
| 30 | t.string :password_digest, index: { unique: true } |
||
| 31 | t.boolean :accepted_terms, default: false |
||
| 32 | |||
| 33 | t.timestamps |
||
| 34 | end |
||
| 35 | end |
||
| 36 | end |
||
| 37 |