rendered paste bodyIndex: db/migrate/080_make_raw_event_schema.rb
===================================================================
--- db/migrate/080_make_raw_event_schema.rb (revision 1261)
+++ db/migrate/080_make_raw_event_schema.rb (working copy)
@@ -8,7 +8,6 @@
class RawEvent < ActiveRecord::Base
has_and_belongs_to_many :truth_selections
- belongs_to :source
belongs_to :raw_harvest
end
@@ -22,7 +21,6 @@
class RawHarvest < ActiveRecord::Base
has_and_belongs_to_many :token_selections
- belongs_to :raw_harvest
end
def self.up
Index: db/migrate/081_populate_raw_event_schema.rb
===================================================================
--- db/migrate/081_populate_raw_event_schema.rb (revision 1261)
+++ db/migrate/081_populate_raw_event_schema.rb (working copy)
@@ -6,7 +6,6 @@
class TruthedEvent < ActiveRecord::Base
has_many :truth_selections
belongs_to :source
- belongs_to :raw_harvest
end
class TruthSelection < ActiveRecord::Base
@@ -14,7 +13,6 @@
end
class Source < ActiveRecord::Base
- has_many :raw_events
has_many :raw_harvests
has_many :harvests
end
@@ -42,12 +40,10 @@
class RawHarvest < ActiveRecord::Base
belongs_to :source
has_many :raw_events
- has_many :truthed_events
end
class RawEvent < ActiveRecord::Base
belongs_to :raw_harvest
- belongs_to :source
has_and_belongs_to_many :token_selections
has_many :events
end