Tricks and Tips for using Fixtures effectively in Rails

The biggest takeaway: don’t use ids unless absolutely necessary. Rely on the autogenerated, deterministic ids, and you get a bunch of behavior for free.