Sha256: 823efe6e60c7b4d18017b0950d8c058aa96e4e1be7bdc63276992f9026dd0679

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

class DeviseXfactorAuthenticationAddToUsers < ActiveRecord::Migration[4.2]
  def up
    change_table :users do |t|
      t.string   :otp_secret_key
      t.integer  :second_factor_attempts_count, :default => 0
    end

    add_index :users, :otp_secret_key, :unique => true
  end

  def down
    remove_column :users, :otp_secret_key
    remove_column :users, :second_factor_attempts_count
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_xfactor_authentication-2.2.23 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb
devise_xfactor_authentication-2.2.22 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb
devise_xfactor_authentication-2.2.21 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb
devise_xfactor_authentication-2.2.20 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb
devise_xfactor_authentication-2.2.19 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb
devise_xfactor_authentication-2.2.18 spec/rails_app/db/migrate/20140407172619_devise_xfactor_authentication_add_to_users.rb