Sha256: 309d99b2cd6c417c894d431c0c3ac337294332925018f3ef254870084af9d686

Contents?: true

Size: 1.72 KB

Versions: 47

Compression:

Stored size: 1.72 KB

Contents

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 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.3 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.2 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.1 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.0 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.0.beta.5 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.10.0.beta.3 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.5 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.3 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.2 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.1 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.0 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.0.beta.4 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.0.beta.3 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.9.0.beta.2 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.8.2 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.8.1 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.8.0 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.8.0.beta.3 db/migrate/20141120155629_devise_extend_push_type_users.rb
push_type_auth-0.8.0.beta.2 db/migrate/20141120155629_devise_extend_push_type_users.rb