diff --git a/lib/generators/active_record/templates/migration.rb b/lib/generators/active_record/templates/migration.rb index afc7078..c0c8b2a 100644 --- a/lib/generators/active_record/templates/migration.rb +++ b/lib/generators/active_record/templates/migration.rb @@ -1,5 +1,5 @@ class TwoFactorAuthenticationAddTo<%= table_name.camelize %> < ActiveRecord::Migration - def self.change + def change change_table :<%= table_name %> do |t| t.string :second_factor_pass_code , :limit => 32 t.integer :second_factor_attempts_count, :default => 0