Sha256: 6d980e85422fe2b1c0b73a50926d5b3517583bc68d88169151f6c78667400c3a

Contents?: true

Size: 679 Bytes

Versions: 20

Compression:

Stored size: 679 Bytes

Contents

class DeviseCreateAdmins < ActiveRecord::Migration
  def self.up
    create_table(:admins) 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 :admins, :email,                :unique => true
    add_index :admins, :reset_password_token, :unique => true
    # add_index :admins, :confirmation_token,   :unique => true
    # add_index :admins, :unlock_token,         :unique => true
  end

  def self.down
    drop_table :admins
  end
end

Version data entries

20 entries across 10 versions & 1 rubygems

Version Path
jabe-0.5.9 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.9 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.8 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.8 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.7 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.7 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.6 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.6 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.5 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.5 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.4 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.4 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.3 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.3 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.2 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.2 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.1 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.1 lib/generators/jabe/templates/migrations/devise_create_admins.rb
jabe-0.5.0 test/dummy/db/migrate/20101229224029_devise_create_admins.rb
jabe-0.5.0 lib/generators/jabe/templates/migrations/devise_create_admins.rb