I don't think this is actually good practice. Hardcoding primary and foreign keys is time consuming and very fragile. I think you can actually pass the fixture name instead:

category:
  name: hello

one:
  category: category

Or perhaps it's category_id: category, don't remember exactly.

I'd also consider adding some links to thoughtbot/factory_girl and rdy/fixture_builder as more advanced options.