Class: Sic1987

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Earth::Model
Defined in:
lib/earth/industry/sic_1987.rb

Constant Summary collapse

TABLE_STRUCTURE =
"\nCREATE TABLE sic_1987\n  (\n     code        CHARACTER VARYING(255) NOT NULL PRIMARY KEY,\n     description CHARACTER VARYING(255)\n  );\n\n"

Class Method Summary collapse

Methods included from Earth::Model

extend_mining, extended, registry

Class Method Details

.format_description(description) ⇒ Object

for data import



26
27
28
# File 'lib/earth/industry/sic_1987.rb', line 26

def self.format_description(description)
  (desc = description.match /^(.+?) \(/) ? desc.captures.first : description
end