Matt Mueller
11 years ago
1 changed files with 6 additions and 1 deletions
@ -1,8 +1,13 @@
|
||||
class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration |
||||
def change |
||||
def up |
||||
change_table :<%= table_name %> do |t| |
||||
t.string :otp_secret_key |
||||
t.integer :second_factor_attempts_count, :default => 0 |
||||
end |
||||
end |
||||
|
||||
def down |
||||
remove_column :<%= table_name %>, :otp_secret_key |
||||
remove_column :<%= table_name %>, :second_factor_attempts_count |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue