Sha256: bcbbee9c99a0d87380eb394d3391a20451cad22b5ae7d17c5df9fe94272049ac
Contents?: true
Size: 1.73 KB
Versions: 7
Compression:
Stored size: 1.73 KB
Contents
class DeviseExtendPushTypeUsers < ActiveRecord::Migration[4.2] 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
7 entries across 7 versions & 1 rubygems