Sha256: 754cb7f85a0a1c52659db97beaceb4e9958c322afa6576e7373f62a212e3db37

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 Bytes

Contents

class AddAdditionalAttributesToUser < ActiveRecord::Migration[4.2]
  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

9 entries across 9 versions & 5 rubygems

Version Path
enju_purchase_request-0.3.2 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_loc-0.3.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_purchase_request-0.3.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_loc-0.3.0 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_search_log-0.3.0.beta.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_purchase_request-0.3.0.beta.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_loc-0.3.0.beta.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_leaf-1.3.0.beta.2 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
enju_manifestation_viewer-0.3.0.beta.1 spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb