metamaps--metamaps/app/models/groupitem.rb

8 lines
183 B
Ruby
Raw Normal View History

2012-09-23 02:39:12 +00:00
class Groupitem < ActiveRecord::Base
belongs_to :group, :class_name => "Group", :foreign_key => "group_id"
belongs_to :item, :class_name => "Item", :foreign_key => "item_id"
end