When using fixtures with "Label references for associations"
(see doc activerecord/lib/active_record/fixtures.rb), the rake
command rake db:fixtures:load fails to load the fixtures properly
in the database. The DB column name is not translated properly and
the field value isn't looked up and the label is put as the value
instead of the id of the associated record.
Attached an app with label references in fixtures, just type
rake db:fixtures:load and see it fails:
SQLite3::SQLException: table courses has no column named
teacher: INSERT INTO "courses" ("subject", "teacher", "created_at",
"updated_at", "id") VALUES ('Math', 'toto', '2011-03-01 16:52:15',
'2011-03-01 16:52:15', 690422863)
With rails 3.0.5. Works with 2.3.10