Sha256: d705992c828a0cc4ded84a39f8bb066258017234bb9ea960ece5423fd1d8561a

Contents?: true

Size: 672 Bytes

Versions: 19

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

19 entries across 19 versions & 1 rubygems

Version Path
wheels-0.1.30 db/migrate/0000_devise_create_users.rb
wheels-0.1.28 db/migrate/0000_devise_create_users.rb
wheels-0.1.27 db/migrate/0000_devise_create_users.rb
wheels-0.1.25 db/migrate/0000_devise_create_users.rb
wheels-0.1.24 db/migrate/0000_devise_create_users.rb
wheels-0.1.23 db/migrate/0000_devise_create_users.rb
wheels-0.1.22 db/migrate/0000_devise_create_users.rb
wheels-0.1.21 db/migrate/0000_devise_create_users.rb
wheels-0.1.20 db/migrate/0000_devise_create_users.rb
wheels-0.1.19 db/migrate/0000_devise_create_users.rb
wheels-0.1.18 db/migrate/0000_devise_create_users.rb
wheels-0.1.17 db/migrate/0000_devise_create_users.rb
wheels-0.1.16 db/migrate/0000_devise_create_users.rb
wheels-0.1.15 db/migrate/0000_devise_create_users.rb
wheels-0.1.14 db/migrate/0000_devise_create_users.rb
wheels-0.1.13 db/migrate/0000_devise_create_users.rb
wheels-0.1.12 db/migrate/0000_devise_create_users.rb
wheels-0.1.10 db/migrate/0000_devise_create_users.rb
wheels-0.1.9 db/migrate/0000_devise_create_users.rb