metamaps--metamaps/app/models/itemitem.rb

8 lines
145 B
Ruby
Raw Normal View History

2012-09-23 02:39:12 +00:00
class Itemitem < ActiveRecord::Base
belongs_to :item
belongs_to :parent_item, :class_name => "Item", :foreign_key => "parent_item_id"
end