diff --git a/test/helper.rb b/test/helper.rb index dd7effe..ef3ba24 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -96,7 +96,7 @@ class LegacyEmployee < ActiveRecord::Base end class LegacyReport < ActiveRecord::Base - belongs_to :employee, :class_name => 'LegacyEmployee' + belongs_to :employee, :class_name => 'LegacyEmployee', :foreign_key => 'email' end class FooBar < ActiveRecord::Base