PluginAWeek: fixture_references - Clean up your fixtures

Hey all,

Just announcing a new plugin...

fixture_references - Adds support for referencing external fixtures
(by name) from within a fixture definition.

Example:

departments.yml:
<%
fixtures :employees
id = 0
%>

packaging:
  id: <%= id += 1 %>
  name: Packaging
  manager_id: <%= employees(:bob)['id'] %>

Wiki
http://wiki.pluginaweek.org/Fixture_references

Announcement
http://www.pluginaweek.org/2007/04/07/14-fix-your-fixtures-with-fewer-foreign-key-ids/

Source
http://svn.pluginaweek.org/trunk/plugins/active_record/migrations/fixture_references

Development
http://dev.pluginaweek.org/browser/trunk/plugins/active_record/migrations/fixture_references