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