Sha256: 854ebbdfe697fbb6825ea00e99ae71c86e1116be843cba01a93aaa395d659e0f

Contents?: true

Size: 662 Bytes

Versions: 7

Compression:

Stored size: 662 Bytes

Contents

require 'earth/model'

require 'earth/bus/bus_fuel_control'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE bus_fuel_year_controls
  (
     name                  CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     bus_fuel_name         CHARACTER VARYING(255),
     year                  INTEGER,
     control               CHARACTER VARYING(255),
     bus_fuel_control_name CHARACTER VARYING(255),
     total_travel_percent  FLOAT
  );

EOS

  self.primary_key = "name"
  
  belongs_to :fuel_control, :class_name => 'BusFuelControl', :foreign_key => 'bus_fuel_control_name'

  warn_unless_size 67
end

Version data entries

7 entries across 7 versions & 1 rubygems

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