Sha256: d8a59a2590655b7402cb4125507410083d1cee5eee4435b544543d82ef4a5bba

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

class Sic1987 < ActiveRecord::Base
  self.primary_key = "code"
  self.table_name = "sic_1987"
  
  has_many :naics_2002_sic_1987_concordances, :foreign_key => :sic_1987_code
  has_many :naics_2002, :through => :naics_2002_sic_1987_concordances
  
  # for data import
  def self.format_description(description)
    (desc = description.match /^(.+?) \(/) ? desc.captures.first : description
  end
  
  col :code
  col :description
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/industry/sic_1987.rb
earth-0.12.3 lib/earth/industry/sic_1987.rb
earth-0.12.2 lib/earth/industry/sic_1987.rb
earth-0.12.1 lib/earth/industry/sic_1987.rb
earth-0.12.0 lib/earth/industry/sic_1987.rb
earth-0.11.20 lib/earth/industry/sic_1987.rb
earth-0.11.19 lib/earth/industry/sic_1987.rb
earth-0.11.18 lib/earth/industry/sic_1987.rb
earth-0.11.17 lib/earth/industry/sic_1987.rb
earth-0.11.16 lib/earth/industry/sic_1987.rb
earth-0.11.15 lib/earth/industry/sic_1987.rb
earth-0.11.14 lib/earth/industry/sic_1987.rb