Sha256: 80a316ebb018802186cf00eb511eac671628cc1e356187f26576b7e6cda12ebb

Contents?: true

Size: 438 Bytes

Versions: 14

Compression:

Stored size: 438 Bytes

Contents

class Naics2002Naics2007Concordance < ActiveRecord::Base
  self.primary_key = "row_hash"
  
  belongs_to :naics_2002, :foreign_key => :naics_2002_code
  belongs_to :naics_2007, :foreign_key => :naics_2007_code
  
  # for data import
  def self.extract_note(description)
    (note = description.match(/ - (.+)/)) ? note.captures.first : nil
  end
  
  col :row_hash
  col :naics_2002_code
  col :naics_2007_code
  col :naics_2002_note
end

Version data entries

14 entries across 14 versions & 1 rubygems

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