Sha256: a30a5a585bbedd485593194884f9856b3b035322c25437469296fba69ed9a1a9

Contents?: true

Size: 1.1 KB

Versions: 11

Compression:

Stored size: 1.1 KB

Contents

class DeviseCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      ## Database authenticatable
      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 :uid

      # t.confirmable
      # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
      # t.token_authenticatable

      t.timestamps
    end

    add_index :users, :email,                :unique => true
    add_index :users, :reset_password_token, :unique => true
    # add_index :users, :confirmation_token,   :unique => true
    # add_index :users, :unlock_token,         :unique => true
  end

  def self.down
    drop_table :users
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
devise_ldap_authenticatable-0.8.6 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
houston-devise_ldap_authenticatable-0.7.1 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
houston-devise_ldap_authenticatable-0.7.0 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
xn_devise_ldap_authenticatable-0.8.5 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.5 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.4 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.3 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.1 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.0 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.8.0.pre spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
devise_ldap_authenticatable-0.7.0 spec/rails_app/db/migrate/20100708120448_devise_create_users.rb