Browse Source

change should be instance method

for_activeadmin
Carlos Vilhena 13 years ago
parent
commit
3c6b836dc0
  1. 2
      lib/generators/active_record/templates/migration.rb

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

@ -1,5 +1,5 @@
class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration
def self.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 :second_factor_pass_code , :limit => 32
t.integer :second_factor_attempts_count, :default => 0 t.integer :second_factor_attempts_count, :default => 0

Loading…
Cancel
Save