Sha256: 00fe9d495036ab6257ea0ae1f50849791e6d87e6861683a59a920d6617ea8b48

Contents?: true

Size: 956 Bytes

Versions: 10

Compression:

Stored size: 956 Bytes

Contents

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

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


      t.timestamps
    end

    # Create a default user
    #AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')

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

  def self.down
    drop_table :admin_users
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
st-rich-1.5.1 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.6 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.5 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.4 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.3 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.2 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4.1 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.4 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.3.1 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb
rich-1.3.0 test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb