Sha256: bf057e35779c7f2ff2f9e7b4ca1f2776d109f2fa663450c3ed631c73222c2be8

Contents?: true

Size: 1.52 KB

Versions: 29

Compression:

Stored size: 1.52 KB

Contents

# This migration comes from carnival_engine (originally 20140129211859)
class DeviseCreateAdminUsers < ActiveRecord::Migration
  def change
    create_table(:admin_users) do |t|
      ## Database authenticatable
      t.string :name,               :null => false, :default => ""
      t.string :email,              :null => false, :default => ""
      t.string :encrypted_password, :null => false, :default => ""

      ## Recoverable
      t.string   :reset_password_token
      t.datetime :reset_password_sent_at

      ## Rememberable
      t.datetime :remember_created_at

      ## Trackable
      t.integer  :sign_in_count, :default => 0, :null => false
      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string   :current_sign_in_ip
      t.string   :last_sign_in_ip

      ## Confirmable
      # t.string   :confirmation_token
      # t.datetime :confirmed_at
      # t.datetime :confirmation_sent_at
      # t.string   :unconfirmed_email # Only if using reconfirmable

      ## Lockable
      # t.integer  :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
      # t.string   :unlock_token # Only if unlock strategy is :email or :both
      # t.datetime :locked_at


      t.timestamps
    end

    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
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
carnival-0.0.59 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.58 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.57 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.56 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.55 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.54 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.53 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.52 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.51 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.50 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.49 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.48 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.47 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.45 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.44 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.43 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.42 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.41 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.40 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb
carnival-0.0.39 test/dummy/db/migrate/20140323020642_devise_create_admin_users.carnival_engine.rb