Visit my website: www.alexandrecalaca.com.br
In our example, there are2 models: Blog and Topic. Think about a single topic blog.
So, A blog can belong to only one topic. A topic has many different blogs.
Blog (N) X (1) topic The foreign key needs to be in the blog model.