title: Rails Associations for Lookup Table
body: <p>I have a Statuses table which contains only an id and name field (Active, Inactive, Pending, etc).  I then have tables such as Users, Achievements, Badges for which each of these contain a status_id foreign key.  Do the associations in my models look correct?</p>
  
  <pre><code>class Status &lt; ActiveRecord::Base
    has_many :achievements
    has_many :badges
    has_many :users
  end
  
  class User &lt; ActiveRecord::Base
    belongs_to :status
  end
  
  class Badge &lt; ActiveRecord::Base
    belongs_to :status
  end
  
  class Achievement &lt; ActiveRecord::Base
    belongs_to :status
  end
  </code></pre>
  
  <p>I am struggling with how to properly read the difference between has_one and has_many in the case of a lookup table. I know that a user has one company and has one profile and a company has many users but this seems backwards to me.</p>