Sha256: dfaafb65d8b541b4b3e05db82c3c96a62f2565399546a4f95257c61d3b48eb6f

Contents?: true

Size: 881 Bytes

Versions: 12

Compression:

Stored size: 881 Bytes

Contents

class CreateAdminUser < ActiveRecord::Migration
  def change
    create_table :admin_users do |t|
      t.string :name
      t.boolean :super, :default => false
      ## Database authenticatable
      t.string :email,              :null => false, :default => ""
      t.string :encrypted_password, :null => false, :default => ""
      ## Encryptable
      t.string :password_salt

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

      ## Lockable
      t.integer  :failed_attempts, :default => 0 # SET lock strategy :failed_attempts
      t.string   :unlock_token # SET unlock strategy  :both
      t.datetime :locked_at

      t.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rmails-0.2.5 db/migrate/20121112201359_create_admin_user.rb
rmails-0.2.4 db/migrate/20121112201359_create_admin_user.rb
rmails-0.2.3 db/migrate/20121112201359_create_admin_user.rb
rmails-0.2.2 db/migrate/20121112201359_create_admin_user.rb
rmails-0.2.1 db/migrate/20121112201359_create_admin_user.rb
rmails-0.2.0 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.6 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.5 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.4 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.3 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.2 db/migrate/20121112201359_create_admin_user.rb
rmails-0.1.1 db/migrate/20121112201359_create_admin_user.rb