aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJohn Gesimondo <john@jmondo.com>2015-06-11 13:31:01 -0700
committerJohn Gesimondo <john@jmondo.com>2015-06-23 14:38:00 -0700
commit4f58c501cf9355258fe16b2526ac01586ff71b08 (patch)
tree79370cdaa16652def1a003c18896422605fa84d8 /activerecord/lib/active_record
parent1022796ac075a5f1a3ca45f4d48284d4bfa2567a (diff)
downloadrails-4f58c501cf9355258fe16b2526ac01586ff71b08.tar.gz
rails-4f58c501cf9355258fe16b2526ac01586ff71b08.tar.bz2
rails-4f58c501cf9355258fe16b2526ac01586ff71b08.zip
Display decimal defaults as strings to keep precision
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/type/decimal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/decimal.rb b/activerecord/lib/active_record/type/decimal.rb
index 867b5f75c7..f200a92d10 100644
--- a/activerecord/lib/active_record/type/decimal.rb
+++ b/activerecord/lib/active_record/type/decimal.rb
@@ -8,7 +8,7 @@ module ActiveRecord
end
def type_cast_for_schema(value)
- value.to_s
+ value.to_s.inspect
end
private