Sha256: 4512a20775ac244b2d5acb224cf64cc8354f06672bf5f383b036a7800658c800
Contents?: true
Size: 427 Bytes
Versions: 8
Compression:
Stored size: 427 Bytes
Contents
require 'earth/model' require 'earth/industry/industry_sector' class Sector < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE sectors ( io_code CHARACTER VARYING(255) NOT NULL PRIMARY KEY, description TEXT, value FLOAT, value_units CHARACTER VARYING(255) ); EOS self.primary_key = "io_code" has_many :industry_sectors, :foreign_key => 'io_code' end
Version data entries
8 entries across 8 versions & 1 rubygems