devise
This commit is contained in:
parent
68cf7b6675
commit
6407aaf07d
@ -1,11 +1,24 @@
|
|||||||
class CreateQaAuthAdmins < ActiveRecord::Migration
|
class CreateQaAuthAdmins < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
create_table :admins do |t|
|
create_table :admins do |t|
|
||||||
t.database_authenticatable
|
t.string :email, :null => false, :default => ""
|
||||||
t.confirmable
|
t.string :encrypted_password, :null => false, :default => ""
|
||||||
t.recoverable
|
|
||||||
t.rememberable
|
## Recoverable
|
||||||
t.trackable
|
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 :username
|
||||||
t.string :surname
|
t.string :surname
|
||||||
t.string :firstname
|
t.string :firstname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user