I’ve been trying to update my Rails project to the new “foxy fixtures”
approach but have run into the following (vexing) problem.
My models looks like this:
class Account < ActiveRecord::Base
has_one :administrator, :class_name => “User”
class User < ActiveRecord::Base
When I do this in the fixtures:
I get the following:
ActiveRecord::StatementInvalid: Mysql::Error: Unknown column
‘administrator’ in ‘field list’: INSERT INTO
Is there a way to tell the fixture that “administrator” should
reference the User model?