Sha256: fa871dac3611a21a77e4e6c12fac9b50c707845bcdb6113d9ec2173dea3b63f3

Contents?: true

Size: 757 Bytes

Versions: 16

Compression:

Stored size: 757 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.encryptable
      # 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
    # add_index :users, :authentication_token, :unique => true
  end

  def self.down
    drop_table :users
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
daily-0.0.10 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.9 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.8 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.7 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.6 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.5 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.4 db/migrate/20111109081414_devise_create_users.rb
rails_blog_engine-0.0.4 spec/dummy/db/migrate/20110913113004_devise_create_users.rb
daily-0.0.3 db/migrate/20111109081414_devise_create_users.rb
daily-0.0.2 db/migrate/20111109081414_devise_create_users.rb
rails_blog_engine-0.0.3 spec/dummy/db/migrate/20110913113004_devise_create_users.rb
rails_blog_engine-0.0.2 spec/dummy/db/migrate/20110913113004_devise_create_users.rb
flushing-flash-0.4.2 test-dummies/dummy-with-devise/db/migrate/20111110074559_devise_create_users.rb
flushing-flash-0.4.1 test/dummy-with-devise/db/migrate/20111110074559_devise_create_users.rb
cantango_editor-0.0.3 spec/dummy/db/migrate/20111019122217_devise_create_users.rb
cantango_editor-0.0.2 spec/dummy/db/migrate/20111019122217_devise_create_users.rb