Sha256: 5340484f2ad544732a1d47bddf84339c1cebf6a1e502efe0657d793c4894f999

Contents?: true

Size: 394 Bytes

Versions: 7

Compression:

Stored size: 394 Bytes

Contents

require 'earth/model'

require 'earth/residence/residential_energy_consumption_survey_response'

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

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE urbanities
  (
     name CHARACTER VARYING(255) NOT NULL PRIMARY KEY
  );

EOS

  self.primary_key = "name"
  
  has_many :residential_energy_consumption_survey_responses

  warn_unless_size 4
end

Version data entries

7 entries across 7 versions & 1 rubygems

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