Sha256: b2efc95d899ba33708e8acd586b70d3a4d0857a861ed8045e8d8a9f310c7506c

Contents?: true

Size: 252 Bytes

Versions: 6

Compression:

Stored size: 252 Bytes

Contents

# 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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/edge.rb
ibm_db-5.4.1 test/models/edge.rb
ibm_db-5.4.0 test/models/edge.rb
ibm_db-5.3.2 test/models/edge.rb
ibm_db-5.3.1 test/models/edge.rb
ruby-on-quails-0.1.0 activerecord/test/models/edge.rb