Sha256: 0e47be33a624145dc2b79717b6a426c183f7214fbfded2aea185f7a74c358dc6

Contents?: true

Size: 536 Bytes

Versions: 339

Compression:

Stored size: 536 Bytes

Contents

class AddAdditionalAttributesToUser < ActiveRecord::Migration
  def change
    add_column :users, :username, :string
    add_column :users, :deleted_at, :datetime
    add_column :users, :expired_at, :datetime

    add_column :users, :failed_attempts, :integer, :default => 0
    add_column :users, :unlock_token, :string
    add_column :users, :locked_at, :datetime

    add_column :users, :confirmed_at, :datetime

    add_index :users, :username, :unique => true
    add_index :users, :unlock_token,         :unique => true
  end
end

Version data entries

339 entries across 331 versions & 23 rubygems

Version Path
enju_inter_library_loan-0.1.0.pre11 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_purchase_request-0.1.0.pre13 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_oai-0.1.0.pre17 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_search_log-0.1.0.pre11 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_news-0.1.0.pre8 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_flower-0.1.0.pre21 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_inventory-0.1.11.pre11 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_loc-0.1.0.pre4 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_nii-0.1.0.pre12 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_bookmark-0.1.2.pre21 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_circulation-0.1.0.pre42 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_event-0.1.17.pre24 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_message-0.1.14.pre22 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_question-0.1.0.pre14 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_ndl-0.1.0.pre35 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_subject-0.1.0.pre29 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_manifestation_viewer-0.1.0.pre17 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_library-0.1.0.pre40 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_biblio-0.1.0.pre64 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_leaf-1.1.0.rc17 db/migrate/20130221154434_add_additional_attributes_to_user.rb