lib/earth/automobile/automobile_make_year.rb in earth-0.11.20 vs lib/earth/automobile/automobile_make_year.rb in earth-0.12.0

- old
+ new

@@ -1,11 +1,13 @@ -require 'earth/fuel' class AutomobileMakeYear < ActiveRecord::Base self.primary_key = "name" col :name col :make_name col :year, :type => :integer col :fuel_efficiency, :type => :float col :fuel_efficiency_units - col :volume, :type => :integer # This will sometimes be null because not all make_years have CAFE data + col :weighting, :type => :float # for calculating AutomobileMake fuel efficiences + + warn_unless_size 1276 + warn_if_any_nulls end