Sha256: e4909b07e69f7d32d0d6f67a92f199c31fa6245d7aeba0c00506a7dfff253e77

Contents?: true

Size: 1.04 KB

Versions: 134

Compression:

Stored size: 1.04 KB

Contents

class AddDeviseToUsers < ActiveRecord::Migration
  def self.up
    change_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


      # Uncomment below if timestamps were not included in your original model.
      # 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
    # By default, we don't want to make any assumption about how to roll back a migration when your
    # model already existed. Please edit below which fields you would like to remove in this migration.
    raise ActiveRecord::IrreversibleMigration
  end
end

Version data entries

134 entries across 134 versions & 12 rubygems

Version Path
enju_search_log-0.0.7 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_search_log-0.0.6 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_purchase_request-0.0.13 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_message-0.1.9 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_message-0.0.24 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_purchase_request-0.0.12 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_message-0.1.8 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_inter_library_loan-0.0.5 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.0.24 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.0.23 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.1.10 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_purchase_request-0.0.10 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.1.9 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.0.22 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_resource_merge-0.0.10 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_subject-0.0.15 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_resource_merge-0.0.9 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.0.21 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_event-0.1.8 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
enju_message-0.0.23 spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb