Sha256: 2783532702c4d33b5c870e5e6f3d7630a507562688f3a12168786e3f4320a83f
Contents?: true
Size: 581 Bytes
Versions: 8
Compression:
Stored size: 581 Bytes
Contents
require 'earth/model' require 'earth/industry/industry' require 'earth/industry/merchant_category' class MerchantCategoryIndustry < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE merchant_category_industries ( row_hash CHARACTER VARYING(255) NOT NULL PRIMARY KEY, mcc CHARACTER VARYING(255), ratio FLOAT, naics_code CHARACTER VARYING(255) ); EOS self.primary_key = "row_hash" belongs_to :merchant_category, :foreign_key => 'mcc' belongs_to :industry, :foreign_key => 'naics_code' end
Version data entries
8 entries across 8 versions & 1 rubygems