aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-05-31 15:50:08 -0400
committerGitHub <noreply@github.com>2017-05-31 15:50:08 -0400
commit908b136cf27aeb38b06dc98e7d2215d852ffc962 (patch)
treeed506114f50c6ab8dba3cea3efc360b07cfdaa1e /activerecord/test/models
parent6fecb188fa14e7ef7b8bbc0b8e5070306338d22c (diff)
parent866ee17a1f774178d6428f766825d709626c08e5 (diff)
downloadrails-908b136cf27aeb38b06dc98e7d2215d852ffc962.tar.gz
rails-908b136cf27aeb38b06dc98e7d2215d852ffc962.tar.bz2
rails-908b136cf27aeb38b06dc98e7d2215d852ffc962.zip
Merge pull request #26634 from kamipo/extract_numeric_data
Extract `NumericData` model for tests
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/numeric_data.rb8
1 files changed, 8 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..c6e025a9ce
--- /dev/null
+++ b/activerecord/test/models/numeric_data.rb
@@ -0,0 +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