title: How to refer to related table in Rails?
body: <p>Currently in seeds.rb I have such code:</p>
  
  <pre><code>Mission.create({ name: "Web Platform", status_id: 3});
  
  # Statuses
  Status.create({ name: "active"})
  Status.create({ name: "complete"})
  Status.create({ name: "future"})
  </code></pre>
  
  <p>It seems very wrong (because from outside this status_id looks like a magic number without meaning, and because depends on order (or setting ids manually)) but I can't find: how it would be better to do?</p>