web/app/models/benchmark_result.rb
changeset 306 8050d8d3681f
parent 303 ce55fabc46a0
--- a/web/app/models/benchmark_result.rb	Tue Nov 17 15:02:56 2015 +0100
+++ b/web/app/models/benchmark_result.rb	Tue Nov 17 15:05:38 2015 +0100
@@ -5,19 +5,6 @@
   has_many :benchmark_durations, dependent: :destroy, inverse_of: :benchmark_result
   has_many :benchmark_parameters, dependent: :destroy, inverse_of: :benchmark_result
 
-  scope :for_configuration_id, -> (configuration_id) do
-    joins(:benchmark_batch).
-      where("benchmark_batches.benchmark_configuration_id = ?", configuration_id)
-  end
-
-  scope :with_batch_and_duration_preloaded, -> do
-    includes(:benchmark_batch, :benchmark_durations)
-  end
-
-  scope :newest_first, -> do
-    order("benchmark_batches.performed_at desc, benchmark_batches.created_at desc")
-  end
-
   def average_duration
     sum = benchmark_durations.inject(0) { |acc, val| acc += val.duration }
     sum / benchmark_durations.size