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

17 lines
361 B
Ruby

class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
t.belongs_to :room, index: true
t.string :provider
t.string :uid
t.string :name
t.string :username
t.string :email
t.string :image
t.string :password_digest, index: { unique: true }
t.timestamps
end
end
end