First, We suppose that you have two tables at least.
In our example, we have `books` and `authors` tables, so we can join them using migration by adding `references` column which is author's `id` of the `book`.
Or in other word, each record in `books` has its author's `id` as:
Now, You need to manually join these table via `model` by :
>
>Adding `has_many :books` in the `author` model
>
>Adding `belongs_to :author` in the `book` model
>
In `models/author.rb`