Sha256: f430519fd2b88bf8c3c328c95f84a767a8e6b0b4fed27a87ed248b82075558fe

Contents?: true

Size: 1.79 KB

Versions: 47

Compression:

Stored size: 1.79 KB

Contents

# This migration comes from push_type_auth (originally 20141120155629)
class DeviseExtendPushTypeUsers < ActiveRecord::Migration
  def change
    ## Database authenticatable
    add_column :push_type_users, :encrypted_password,     :string, null: false, default: ""

    ## Recoverable
    add_column :push_type_users, :reset_password_token,   :string  
    add_column :push_type_users, :reset_password_sent_at, :datetime

    ## Rememberable
    add_column :push_type_users, :remember_created_at,    :datetime

    ## Trackable
    add_column :push_type_users, :sign_in_count,          :integer, default: 0, null: false
    add_column :push_type_users, :current_sign_in_at,     :datetime
    add_column :push_type_users, :last_sign_in_at,        :datetime
    add_column :push_type_users, :current_sign_in_ip,     :string
    add_column :push_type_users, :last_sign_in_ip,        :string

    ## Confirmable
    add_column :push_type_users, :confirmation_token,     :string
    add_column :push_type_users, :confirmed_at,           :datetime
    add_column :push_type_users, :confirmation_sent_at,   :datetime
    # add_column :push_type_users, :unconfirmed_email,      :string # Only if using reconfirmable

    ## Lockable
    # add_column :push_type_users, :failed_attempts,        :integer, default: 0, null: false # Only if lock strategy is :failed_attempts
    # add_column :push_type_users, :unlock_token,           :string # Only if unlock strategy is :email or :both
    # add_column :push_type_users, :locked_at,              :datetime

    add_index :push_type_users, :email,                unique: true
    add_index :push_type_users, :reset_password_token, unique: true
    # add_index :push_type_users, :confirmation_token,   unique: true
    # add_index :push_type_users, :unlock_token,         unique: true
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
push_type_auth-0.10.4 test/dummy/db/migrate/20170130110829_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.3 test/dummy/db/migrate/20170130110829_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.2 test/dummy/db/migrate/20161221151137_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.1 test/dummy/db/migrate/20161211203745_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.0 test/dummy/db/migrate/20161121193515_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.0.beta.5 test/dummy/db/migrate/20161117154619_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.10.0.beta.3 test/dummy/db/migrate/20161116222940_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.5 test/dummy/db/migrate/20161024154040_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.3 test/dummy/db/migrate/20161016144210_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.2 test/dummy/db/migrate/20160808143134_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.1 test/dummy/db/migrate/20160802200035_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.0 test/dummy/db/migrate/20160728152324_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.0.beta.4 test/dummy/db/migrate/20160728152324_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.0.beta.3 test/dummy/db/migrate/20160727140511_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.9.0.beta.2 test/dummy/db/migrate/20160725104610_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.8.2 test/dummy/db/migrate/20160615180858_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.8.1 test/dummy/db/migrate/20160303195144_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.8.0 test/dummy/db/migrate/20160303195144_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.8.0.beta.3 test/dummy/db/migrate/20160219134033_devise_extend_push_type_users.push_type_auth.rb
push_type_auth-0.8.0.beta.2 test/dummy/db/migrate/20160215150652_devise_extend_push_type_users.push_type_auth.rb