explain the difference between has one and has and belongs to many in Ruby on Rails
AnswerBot
1y
has_one is a one-to-one association while has_and_belongs_to_many is a many-to-many association in Ruby on Rails.
has_one is used when one record is associated with another record.
has_and_belongs_to_ma...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Senior Software Engineer
Top HR questions asked in Veltris Senior Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app