Sha256: 4aee7eca490e900410cd49bba35dec84c5919119f2a7f5159b6ad45d6a31e6de

Contents?: true

Size: 672 Bytes

Versions: 37

Compression:

Stored size: 672 Bytes

Contents

class DeviseCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.database_authenticatable :null => false
      t.recoverable
      t.rememberable
      t.trackable

      # 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

37 entries across 37 versions & 7 rubygems

Version Path
governor_livejournal-0.2.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_livejournal-0.1.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_blogger-0.1.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_background-0.1.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.3.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.3.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.2.3 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.2.2 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.2.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.2.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.1.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.1.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
merrycms-0.1.4 lib/generators/merrycms/templates/devise_create_users_migration.rb
merrycms-0.1.2 lib/generators/merrycms/templates/devise_create_users_migration.rb
merrycms-0.1.1 lib/generators/merrycms/templates/devise_create_users_migration.rb
merrycms-0.1.0 lib/generators/merrycms/templates/devise_create_users_migration.rb
devise_paypal-0.0.1 test/rails_app/db/migrate/20101102105924_devise_create_users.rb