metamaps--metamaps/app/models/synapse.rb

9 lines
197 B
Ruby
Raw Normal View History

class Synapse < ActiveRecord::Base
belongs_to :user
belongs_to :item1, :class_name => "Item", :foreign_key => "node1_id"
belongs_to :item2, :class_name => "Item", :foreign_key => "node2_id"
end