lib/earth/residence/dishwasher_use.rb in earth-0.5.4 vs lib/earth/residence/dishwasher_use.rb in earth-0.6.0
- old
+ new
@@ -1,11 +1,9 @@
class DishwasherUse < ActiveRecord::Base
set_primary_key :name
has_many :residential_energy_consumption_survey_responses
- force_schema do
- string 'name'
- float 'annual_energy_from_electricity_for_dishwashers'
- string 'annual_energy_from_electricity_for_dishwashers_units'
- end
-end
+ col :name
+ col :annual_energy_from_electricity_for_dishwashers, :type => :float
+ col :annual_energy_from_electricity_for_dishwashers_units
+end
\ No newline at end of file