Sha256: 569bda8f59b249b13f8e89b7bd076c762d2192dbc695938d207e0f33d55401a5

Contents?: true

Size: 668 Bytes

Versions: 7

Compression:

Stored size: 668 Bytes

Contents

require 'earth/model'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE automobile_type_fuel_controls
  (
     name                      CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     type_name                 CHARACTER VARYING(255),
     fuel_family               CHARACTER VARYING(255),
     control_name              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 20
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.1.2 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.1.1 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.1.0 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.0.3 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.0.2 lib/earth/automobile/automobile_type_fuel_control.rb
earth-1.0.1 lib/earth/automobile/automobile_type_fuel_control.rb