metamaps--metamaps/app/models/synapse.rb
2012-10-17 20:51:54 -04:00

8 lines
197 B
Ruby

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