Sha256: 60b003fa77399952aa13caf97f8f3d471916f3e1b7f37bff3fdb4de7c80da065

Contents?: true

Size: 282 Bytes

Versions: 6

Compression:

Stored size: 282 Bytes

Contents

class MerchantCategory < ActiveRecord::Base
  set_primary_key :mcc

  has_many :merchant_category_industries, :foreign_key => 'mcc'
  has_many :industries, :through => :merchant_category_industries

  def name
    description
  end

  col :mcc
  col :description, :type => :text
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
earth-0.11.0 lib/earth/industry/merchant_category.rb
earth-0.7.0 lib/earth/industry/merchant_category.rb
earth-0.6.6 lib/earth/industry/merchant_category.rb
earth-0.6.5 lib/earth/industry/merchant_category.rb
earth-0.6.4 lib/earth/industry/merchant_category.rb
earth-0.6.3 lib/earth/industry/merchant_category.rb