equal
deleted
inserted
replaced
|
1 class BenchmarkConfiguration < ActiveRecord::Base |
|
2 |
|
3 has_many :benchmark_batches, inverse_of: :benchmark_configuration |
|
4 belongs_to :language, dependent: :destroy, inverse_of: :benchmark_configurations |
|
5 belongs_to :runtime, dependent: :destroy, inverse_of: :benchmark_configurations |
|
6 belongs_to :operating_system, dependent: :destroy, inverse_of: :benchmark_configurations |
|
7 |
|
8 def name |
|
9 "#{runtime.name} (#{language.name}) on #{operating_system.name}" |
|
10 end |
|
11 |
|
12 end |