class ItemGroup < ActiveRecord::Base has_and_belongs_to_many :items, :join_table => 'item_item_groups' end