(my post was deleted i don’t know why)
Hi. I have a question.
for example, when model records about man, suppose man can marry with
then i think code will be like this
class Man < ActiveRecord::Base
Because one man can marry with up to 1 woman( 0 or 1 )
it can’t be 1:1 relationship, didn’t it?
but at the same time more than 1 wife is not allowed.
then how can i model this relationship into rails code?
has_many :limit option is fit for this relation?
and i wish it is not deleted again. If it should be deleted please let
me know why it should be.