web/app/models/benchmark_configuration.rb
changeset 106 eac4098d544d
child 108 69aa849f6930
equal deleted inserted replaced
105:8293977e9a30 106:eac4098d544d
       
     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