From 3c6b836dc04c3285d2df60796e3ff136b6b5589e Mon Sep 17 00:00:00 2001 From: Carlos Vilhena Date: Tue, 1 May 2012 15:34:38 +0100 Subject: [PATCH] change should be instance method --- lib/generators/active_record/templates/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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