Sha256: 88bbb747a0579b9679ce7929e4d3a7499f608d122dcdde51263af759290803ad
Contents?: true
Size: 592 Bytes
Versions: 15
Compression:
Stored size: 592 Bytes
Contents
class MerchantCategoriesIndustries < ActiveRecord::Base extend Earth::Base belongs_to :merchant_category, :foreign_key => 'mcc' belongs_to :industry, :foreign_key => 'naics_code' has_many :industries_product_lines, :through => :industry, :class_name => 'IndustriesProductLines' has_many :industries_sectors, :through => :industry, :class_name => 'IndustriesSectors' def self.schema_definition lambda do string 'mcc' float 'ratio' string 'naics_code' end end data_miner do MerchantCategoriesIndustries.define_schema(self) end end
Version data entries
15 entries across 15 versions & 1 rubygems