This commit is contained in:
Nico 2013-02-13 01:14:30 +01:00
parent 68cf7b6675
commit 6407aaf07d

View File

@ -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