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