title: Rails - Best-Practice: How to create dependent has_one relations
body: <p>What's the best practice to create has_one relations?</p>
  <p>For example, if I have a user model, and it must have a profile...</p>
  <p>How could I accomplish that?</p>
  <p>One solution would be:</p>
  <pre><code># user.rb
  class User &lt;&lt; ActiveRecord::Base
    after_create :set_default_association
  
    def set_default_association
      self.create_profile
    end
  end
  </code></pre>
  <p>But that doesn't seem very clean...  Any suggestions?</p>