Check out example codes for "how to access a join table in rails c". It will help you in understanding the concepts better.

Code Example 1

Question.connection.execute "select count(*) from questions_tags"

Learn ReactJs, React Native from akashmittal.com