title: Ruby on Rails - Models and Relationship Table
body: <p>I am a noob starting out with ruby on rails and trying to understand models. Pretty familiar with databases and wanted to understand when to generate models for a relationship?</p>
  
  <p>For example - I have users table and gadgets table. Every user can have multiple gadgets. I want to store this relationship in a relationship table with user_id and gadget_id. I have created the two tables by using the rails generate model User and rails generate model Gadget cmd.</p>
  
  <p>Question - Will I now create another model called users_gadgets ? Is the naming convention correct? I have seen lots of documentation on how to create associations (has_many, belongs_to ) but don't understand when I need to create model?</p>
  
  <p>Do I have to create models every time I want to store a relationship in a database and then run my migrations?</p>