Sha256: 2a87417334c3c917ce42e8a6f4a0ec6b512c45fe243797745a7591ed6df0ff2e
Contents?: true
Size: 629 Bytes
Versions: 8
Compression:
Stored size: 629 Bytes
Contents
require 'earth/model' require 'earth/industry/product_line' require 'earth/industry/industry_product' class ProductLineIndustryProduct < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE product_line_industry_products ( row_hash CHARACTER VARYING(255) NOT NULL PRIMARY KEY, ps_code CHARACTER VARYING(255), ratio FLOAT, naics_product_code CHARACTER VARYING(255) ); EOS self.primary_key = "row_hash" belongs_to :product_line, :foreign_key => 'ps_code' belongs_to :industry_product, :foreign_key => 'naics_product_code' end
Version data entries
8 entries across 8 versions & 1 rubygems