aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/edge.rb
blob: a04ab103def02d777d69d883e37be98394a0b99c (plain) (tree)
1
2
3
4
5
6
7

                             

                                                

                                                                    
   
# frozen_string_literal: true

# This class models an edge in a directed graph.
class Edge < ActiveRecord::Base
  belongs_to :source, class_name: "Vertex", foreign_key: "source_id"
  belongs_to :sink,   class_name: "Vertex", foreign_key: "sink_id"
end