title: Opinion about migrate and use 2 tables on Rails 4
body: <p>I am trying to build a reservation system. Until now, I did the reservation table and check for the availability using this model:</p>
  
  <pre><code>class Reservations &lt; ActiveRecord::Base
  # User_id 
  # Room_id
  # Start_date
  # End_date
  # Day (integer)
  # isCanceled (false automatically)
  
  belongs_to :user, :class_name =&gt; "Users", :foreign_key =&gt; "user_id"
  belongs_to :room, :class_name =&gt; "Rooms", :foreign_key =&gt; "room_id"
  end
  </code></pre>
  
  <p>Now I want to add a "Music lessons" table to fetch and add the courses that repeats every day. This is my model:</p>
  
  <pre><code>class Roomschedule &lt; ActiveRecord::Base
  # Name
  # Start_date
  # End_date
  # Room_id 
  # Day (integer)
  
  belongs_to :room, :class_name =&gt; "Rooms", :foreign_key =&gt; "room_id"
  end
  </code></pre>
  
  <p>In my Reservations controller, I display all my programs using this sql query:</p>
  
  <pre><code>@all = Reservations.where("start_date &gt; ?", Time.now.beginning_of_day).order("start_date ASC")
  </code></pre>
  
  <p>But I want to merge Reservations table with Roomschedule table to also check and display with the current ongoing courses. </p>
  
  <p>Do you have any suggestions?</p>
  
  <p>Thanks</p>