search for: has_one_or_many

Displaying 1 result from an estimated 1 matches for "has_one_or_many".

2007 May 17
1
has_one_or_many
The problem is this: Here''s somewhat what I''m trying to get working: class Membership < ActiveRecord::Base end class Plan < ActiveRecord::Base end class MultiUser < Plan has_many :users end class SingleUser < Plan has_one :user end class User < ActiveRecord::Base end and then in my user table I would have a membership_id but no