initial rebuild from v1
This commit is contained in:
26
db/migrate/20210422154238_devise_create_users.rb
Normal file
26
db/migrate/20210422154238_devise_create_users.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DeviseCreateUsers < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
## Database authenticatable
|
||||
t.string :email
|
||||
t.string :encrypted_password
|
||||
|
||||
## Rememberable
|
||||
t.datetime :remember_created_at
|
||||
|
||||
# Bnet fields
|
||||
t.string :battletag, null: false
|
||||
t.string :provider
|
||||
t.string :uid
|
||||
t.boolean :token_expires
|
||||
t.timestamp :token_expire_at
|
||||
t.string :token
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
add_index :users, :battletag, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user