Started again with Rails 4
[feedcatcher.git] / vendor / rails / activerecord / test / models / vertex.rb
diff --git a/vendor/rails/activerecord/test/models/vertex.rb b/vendor/rails/activerecord/test/models/vertex.rb
deleted file mode 100644 (file)
index 48bb851..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# This class models a vertex in a directed graph.
-class Vertex < ActiveRecord::Base
-  has_many :sink_edges, :class_name => 'Edge', :foreign_key => 'source_id'
-  has_many :sinks, :through => :sink_edges
-
-  has_and_belongs_to_many :sources,
-    :class_name => 'Vertex', :join_table => 'edges',
-    :foreign_key => 'sink_id', :association_foreign_key => 'source_id'
-end