initial rebuild from v1

This commit is contained in:
2021-04-22 22:31:23 +02:00
commit cc8cf4954d
152 changed files with 11559 additions and 0 deletions

View 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