You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Alister A. Fenix
afenix
I focus on the intersection of design and technology to create purposeful applications and data-driven stories that contribute to the betterment of our planet.
Class name Table name In belongs_to In has_many In has_and_belongs_to_many
-----------------------------------------------------------------------------------------------------------------------
Task tasks belongs_to(:task) has_many(:tasks) has_and_belongs_to_many(:tasks)
Person people belogns_to(:person) has_many(:people) has_and_belongs_to_many(:people)
CreditCard credit_cards belongs_to(:credit_card) has_many(:credit_cards) has_and_belongs_to_many(:credit_cards)
singular plural singular snake case plural snake case plural snake case