Topic: Rails Active Relationships and the internal table structure & sql

For a many-to-many relationship between two tables A & B, can anyone post how rails defines the table and builds sql statements to access these.
Thanks a lot.
I am still a newbie to rails and trying to understand.

Re: Rails Active Relationships and the internal table structure & sql

To understand how tables and relationship works in Rails and how to query them the best is first to read the Rails guides here the urls for Rails 4 :
http://guides.rubyonrails.org/migrations.html  and http://guides.rubyonrails.org/association_basics.html, http://guides.rubyonrails.org is the url for official Rails guides

These guides are also avalaible for 3.2.x Rails versions http://guides.rubyonrails.org/v3.2.13/.

After reading and do some tries, if you have problems don't hesitate to ask for help (here or on StackOverflow)
Have swing
Cheers

Re: Rails Active Relationships and the internal table structure & sql

Thanks a lot. true. think more reading is required... will get back after i do some examples.