aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/numeric_data.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/numeric_data.rb')
-rw-r--r--activerecord/test/models/numeric_data.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/models/numeric_data.rb b/activerecord/test/models/numeric_data.rb
new file mode 100644
index 0000000000..666e1a5778
--- /dev/null
+++ b/activerecord/test/models/numeric_data.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+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