Sha256: 2c89522c8fd9238919b049241b8b1e4883577f5a0a54f880a184e8b0fb7500fb
Contents?: true
Size: 492 Bytes
Versions: 8
Compression:
Stored size: 492 Bytes
Contents
class RailFuel < ActiveRecord::Base set_primary_key :name belongs_to :fuel, :foreign_key => 'fuel_name' delegate :density, :density_units, :co2_emission_factor, :co2_emission_factor_units, :co2_biogenic_emission_factor, :co2_biogenic_emission_factor_units, :to => :fuel, :allow_nil => true col :name col :fuel_name col :ch4_emission_factor, :type => :float col :ch4_emission_factor_units col :n2o_emission_factor, :type => :float col :n2o_emission_factor_units end
Version data entries
8 entries across 8 versions & 1 rubygems