Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- class Street
- include Mongoid::Document
- field :name
- references_and_referenced_in_many :testrefc, :dependent => :nullify, :class => 'House', :foreign_key => 'testrefc_ids', :inverse_of => :testrefa
- references_and_referenced_in_many :testrefd, :dependent => :nullify, :class => 'House', :foreign_key => 'testrefd_ids', :inverse_of => :testrefb
- end
Add Comment
Please, Sign In to add comment