lib/earth/pet/species.rb in earth-0.11.10 vs lib/earth/pet/species.rb in earth-0.11.11
- old
+ new
@@ -1,7 +1,7 @@
class Species < ActiveRecord::Base
- set_primary_key :name
+ self.primary_key = "name"
col :name
col :population, :type => :integer
col :diet_emission_intensity, :type => :float
col :diet_emission_intensity_units
@@ -53,6 +53,6 @@
end
def cat?
eql? self.class[:cat]
end
-end
\ No newline at end of file
+end