Sha256: c55bc7aa1f1a61ccfc2d2520143a38bd136b9f012d4257fb427dceff7ed0eec1

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

class TwoFactorAuthenticationAddToUsers < 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

2 entries across 2 versions & 2 rubygems

Version Path
devise_two_factor_authentication-3.0.0 spec/rails_app/db/migrate/20140407172619_two_factor_authentication_add_to_users.rb
two_factor_authentication-2.2.0 spec/rails_app/db/migrate/20140407172619_two_factor_authentication_add_to_users.rb