From 866ee17a1f774178d6428f766825d709626c08e5 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 22 Dec 2016 15:14:39 +0900 Subject: Restore the override of numeric attributes properly `attribute :world_population, :integer` is not a same with default decimal without scale type unless #26302 is merged. Should be `attribute :world_population, :big_integer` for now. --- activerecord/test/models/numeric_data.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord') diff --git a/activerecord/test/models/numeric_data.rb b/activerecord/test/models/numeric_data.rb index 9d2fe9781d..c6e025a9ce 100644 --- a/activerecord/test/models/numeric_data.rb +++ b/activerecord/test/models/numeric_data.rb @@ -1,3 +1,8 @@ class NumericData < ActiveRecord::Base self.table_name = "numeric_data" + # Decimal columns with 0 scale being automatically treated as integers + # is deprecated, and will be removed in a future version of Rails. + attribute :world_population, :big_integer + attribute :my_house_population, :big_integer + attribute :atoms_in_universe, :big_integer end -- cgit v1.2.3