Sha256: b2a7b87536382ee23c09c131bed7dfcc38214a08544bb982a2f5ef03bcf19ba8

Contents?: true

Size: 781 Bytes

Versions: 7

Compression:

Stored size: 781 Bytes

Contents

require 'earth/model'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE country_rail_traction_classes
  (
     name                        CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     country_iso_3166_code       CHARACTER VARYING(255),
     rail_traction_name          CHARACTER VARYING(255),
     rail_class_name             CHARACTER VARYING(255),
     electricity_intensity       FLOAT,
     electricity_intensity_units CHARACTER VARYING(255),
     diesel_intensity            FLOAT,
     diesel_intensity_units      CHARACTER VARYING(255),
     co2_emission_factor         FLOAT,
     co2_emission_factor_units   CHARACTER VARYING(255)
  );

EOS

  self.primary_key = "name"
  
  warn_unless_size 125
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/rail/country_rail_traction_class.rb
earth-1.1.2 lib/earth/rail/country_rail_traction_class.rb
earth-1.1.1 lib/earth/rail/country_rail_traction_class.rb
earth-1.1.0 lib/earth/rail/country_rail_traction_class.rb
earth-1.0.3 lib/earth/rail/country_rail_traction_class.rb
earth-1.0.2 lib/earth/rail/country_rail_traction_class.rb
earth-1.0.1 lib/earth/rail/country_rail_traction_class.rb