Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Man < ActiveRecord::Base
- has_one :right_shoe, class_name: 'Content', dependent: :destroy
- has_one :left_shoe, class_name: 'Content', dependent: :destroy
- end
- class Shoe < ActiveRecord::Base
- belongs_to :service, ???as: :right_shoe???
- belongs_to :service, ???as: :left_shoe???
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement