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-0.5.7 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.6 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.5 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_livejournal-0.2.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_blogger-0.1.2 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_blogger-0.1.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_twitter-0.1.2 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_twitter-0.1.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_background-0.3.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.4 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_twitter-0.1.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_background-0.2.2 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_background-0.2.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor_background-0.2.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.3 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.2 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.1 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
governor-0.5.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb
merrycms-0.1.7 lib/generators/merrycms/templates/devise_create_users_migration.rb
governor-0.4.0 spec/rails_app/db/migrate/20110329032256_devise_create_users.rb