Sha256: 9c991ead1f1dcf13e47783c7beb3e0d3c60092fb36dfeb7f99ee27bbcbbe2be5

Contents?: true

Size: 709 Bytes

Versions: 8

Compression:

Stored size: 709 Bytes

Contents

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

  def self.down
    drop_table :jabe_admins
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jabe-0.8.0 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.7.0 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.5 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.4 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.3 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.2 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.1 db/migrate/20101230010436_devise_create_admins.rb
jabe-0.6.0 db/migrate/20101230010436_devise_create_admins.rb