Sha256: 84fcddc31196facb82f2dd09a7adf3ef634087c044610b152cd73913ba5fc5bc

Contents?: true

Size: 591 Bytes

Versions: 43

Compression:

Stored size: 591 Bytes

Contents

class ProductLine < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :ps_code
  
  has_many :industry_product_lines,         :foreign_key => 'ps_code'
  
  has_many :product_line_industry_products, :foreign_key => 'ps_code'
  has_many :industry_products, :through => :product_line_industry_products
  
  def self.schema_definition
    lambda do
      string 'ps_code'
      string 'description'
      string 'broadline' # FIXME TODO do we need this?
      string 'parent'    # FIXME TODO do we need this?
    end
  end

  data_miner do
    ProductLine.define_schema(self)
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
earth-0.5.0 lib/earth/industry/product_line.rb
earth-0.4.12 lib/earth/industry/product_line.rb
earth-0.4.11 lib/earth/industry/product_line.rb
earth-0.4.10 lib/earth/industry/product_line.rb
earth-0.4.9 lib/earth/industry/product_line.rb
earth-0.4.8 lib/earth/industry/product_line.rb
earth-0.4.7 lib/earth/industry/product_line.rb
earth-0.4.6 lib/earth/industry/product_line.rb
earth-0.4.5 lib/earth/industry/product_line.rb
earth-0.4.4 lib/earth/industry/product_line.rb
earth-0.4.3 lib/earth/industry/product_line.rb
earth-0.4.2 lib/earth/industry/product_line.rb
earth-0.4.1 lib/earth/industry/product_line.rb
earth-0.4.0 lib/earth/industry/product_line.rb
earth-0.3.15 lib/earth/industry/product_line.rb
earth-0.3.14 lib/earth/industry/product_line.rb
earth-0.3.13 lib/earth/industry/product_line.rb
earth-0.3.11 lib/earth/industry/product_line.rb
earth-0.3.10 lib/earth/industry/product_line.rb
earth-0.3.9 lib/earth/industry/product_line.rb