title: ActiveRecord : which associations for places and routes?
body: <p>I would like to associates places within routes : one route has two places (start point and end point) + I need to store the distance btw those two points. I wonder if the data model is correct :
  <a href="https://github.com/roms182/frais-kilometriques/blob/master/Annexes/shortmodel.png" rel="nofollow noreferrer">https://github.com/roms182/frais-kilometriques/blob/master/Annexes/shortmodel.png</a></p>
  
  <p>And I am not sure how to settle associations in Rails.</p>
  
  <pre><code>class Place &lt; ApplicationRecord
    has_many :routes
  end
  
  class Route &lt; ApplicationRecord
    belongs_to :place
  end
  </code></pre>