Sha256: 742c38220b913a4443f61a043cd4c78427ef702028edd48043bd308e898c94f4

Contents?: true

Size: 598 Bytes

Versions: 8

Compression:

Stored size: 598 Bytes

Contents

require 'earth/model'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE automobile_make_years
  (
     name                  CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     make_name             CHARACTER VARYING(255),
     year                  INTEGER,
     fuel_efficiency       FLOAT,
     fuel_efficiency_units CHARACTER VARYING(255),
     weighting             FLOAT                   /* for calculating AutomobileMake fuel efficiences */
  );

EOS

  self.primary_key = "name"
  
  warn_unless_size 1276
  warn_if_any_nulls
end

Version data entries

8 entries across 8 versions & 1 rubygems

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