Sha256: 22ad729c2f391a519d46f7048760aa3e2479226e055e552ca50fa210741c8739

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 Bytes

Contents

require 'earth/model'

require 'earth/residence/residential_energy_consumption_survey_response'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE dishwasher_uses
  (
     name                                                 CHARACTER VARYING(255) NOT NULL PRIMARY KEY,
     annual_energy_from_electricity_for_dishwashers       FLOAT,
     annual_energy_from_electricity_for_dishwashers_units CHARACTER VARYING(255)
  );

EOS

  self.primary_key = "name"
  
  has_many :residential_energy_consumption_survey_responses

  warn_unless_size 5
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/residence/dishwasher_use.rb
earth-1.1.2 lib/earth/residence/dishwasher_use.rb
earth-1.1.1 lib/earth/residence/dishwasher_use.rb
earth-1.1.0 lib/earth/residence/dishwasher_use.rb
earth-1.0.3 lib/earth/residence/dishwasher_use.rb
earth-1.0.2 lib/earth/residence/dishwasher_use.rb
earth-1.0.1 lib/earth/residence/dishwasher_use.rb