Browse Source

Change migration to add otp secret key.

master
Matt Mueller 11 years ago
parent
commit
98868bbece
  1. 2
      lib/generators/active_record/templates/migration.rb

2
lib/generators/active_record/templates/migration.rb

@ -1,7 +1,7 @@
class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration
def change def change
change_table :<%= table_name %> do |t| change_table :<%= table_name %> do |t|
t.string :second_factor_pass_code , :limit => 32 t.string :otp_secret_key
t.integer :second_factor_attempts_count, :default => 0 t.integer :second_factor_attempts_count, :default => 0
end end
end end

Loading…
Cancel
Save