Passed
Push — master ( 33ca92...23b088 )
by Ahmad
10:28
created

CreateUsers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 16 1
1
# frozen_string_literal: true
2
3
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
4
#
5
# Copyright (c) 2018 BigBlueButton Inc. and by respective authors (see below).
6
#
7
# This program is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU Lesser General Public License as published by the Free Software
9
# Foundation; either version 3.0 of the License, or (at your option) any later
10
# version.
11
#
12
# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
15
#
16
# You should have received a copy of the GNU Lesser General Public License along
17
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18
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