On the document the has_many :limit option :
The :limit option lets you restrict the total number of objects that
will be fetched through an association.
I’m a little confused about this explanation.
is fetched means it can save more but restircted numbers to retrieve
For example, we can have wife/husband up to 1 (unless arab…)
class Me < ActiveRecord::Base
because i can have a wife or not. so it is not 1:1, isn’t it?
but at the same time i want to limit the number of wife to just 1.
how can i represent this relationship into active record?