Sha256: 4a6a9179593f13b7e2db49cd072d8fd1213e5ca112b18d22325152f529656b24

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

require 'earth/model'

class BusFuelControl < ActiveRecord::Base
  extend Earth::Model

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE bus_fuel_controls
  (
     name                      CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     bus_fuel_name             CHARACTER VARYING(255),
     control                   CHARACTER VARYING(255),
     ch4_emission_factor       FLOAT,
     ch4_emission_factor_units CHARACTER VARYING(255),
     n2o_emission_factor       FLOAT,
     n2o_emission_factor_units CHARACTER VARYING(255)
  );

EOS

  self.primary_key = "name"

  warn_unless_size 9
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/bus/bus_fuel_control.rb
earth-1.1.2 lib/earth/bus/bus_fuel_control.rb
earth-1.1.1 lib/earth/bus/bus_fuel_control.rb
earth-1.1.0 lib/earth/bus/bus_fuel_control.rb
earth-1.0.3 lib/earth/bus/bus_fuel_control.rb
earth-1.0.2 lib/earth/bus/bus_fuel_control.rb
earth-1.0.1 lib/earth/bus/bus_fuel_control.rb