lib/earth/industry/sector.rb in earth-0.5.4 vs lib/earth/industry/sector.rb in earth-0.6.0
- old
+ new
@@ -1,12 +1,10 @@
class Sector < ActiveRecord::Base
set_primary_key :io_code
has_many :industry_sectors, :foreign_key => 'io_code'
- force_schema do
- string 'io_code'
- string 'description'
- float 'value'
- string 'value_units'
- end
-end
+ col :io_code
+ col :description
+ col :value, :type => :float
+ col :value_units
+end
\ No newline at end of file