devise
This commit is contained in:
parent
68cf7b6675
commit
6407aaf07d
@ -1,11 +1,24 @@
|
||||
class CreateQaAuthAdmins < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :admins do |t|
|
||||
t.database_authenticatable
|
||||
t.confirmable
|
||||
t.recoverable
|
||||
t.rememberable
|
||||
t.trackable
|
||||
t.string :email, :null => false, :default => ""
|
||||
t.string :encrypted_password, :null => false, :default => ""
|
||||
|
||||
## Recoverable
|
||||
t.string :reset_password_token
|
||||
t.datetime :reset_password_sent_at
|
||||
|
||||
## Rememberable
|
||||
t.datetime :remember_created_at
|
||||
|
||||
## Trackable
|
||||
t.integer :sign_in_count, :default => 0
|
||||
t.datetime :current_sign_in_at
|
||||
t.datetime :last_sign_in_at
|
||||
t.string :current_sign_in_ip
|
||||
t.string :last_sign_in_ip
|
||||
|
||||
|
||||
t.string :username
|
||||
t.string :surname
|
||||
t.string :firstname
|
||||
|
Loading…
x
Reference in New Issue
Block a user