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/20180504131648_create_users.rb

21 lines
467 B
Ruby
Raw Normal View History

2018-06-26 10:29:46 -04:00
# frozen_string_literal: true
2018-05-07 16:06:01 -04:00
class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
2018-05-31 15:04:18 -04:00
t.belongs_to :room, index: true
2018-05-09 16:31:52 -04:00
t.string :provider
t.string :uid
2018-05-07 16:06:01 -04:00
t.string :name
t.string :username
t.string :email
2018-06-04 15:58:59 -04:00
t.string :social_uid
2018-05-25 11:55:48 -04:00
t.string :image
2018-05-09 16:31:52 -04:00
t.string :password_digest, index: { unique: true }
t.boolean :accepted_terms, default: false
2018-05-07 16:06:01 -04:00
t.timestamps
end
end
end