metamaps--metamaps/app/models/personitem.rb

8 lines
187 B
Ruby
Raw Normal View History

2012-09-23 02:39:12 +00:00
class Personitem < ActiveRecord::Base
belongs_to :person, :class_name => "Person", :foreign_key => "person_id"
belongs_to :item, :class_name => "Item", :foreign_key => "item_id"
end