Sha256: 1bb9f1de228646f2343f4ef0adc7b978a505cd331a0348091f4fd31932ccfab5
Contents?: true
Size: 667 Bytes
Versions: 8
Compression:
Stored size: 667 Bytes
Contents
require 'earth/model' require 'earth/industry/industry' require 'earth/industry/product_line_industry_product' class IndustryProduct < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE industry_products ( naics_product_code CHARACTER VARYING(255) NOT NULL PRIMARY KEY, description TEXT, value FLOAT, value_units CHARACTER VARYING(255), naics_code CHARACTER VARYING(255) ); EOS self.primary_key = "naics_product_code" has_many :product_line_industry_products, :foreign_key => 'naics_product_code' belongs_to :industry, :foreign_key => 'naics_code' end
Version data entries
8 entries across 8 versions & 1 rubygems