aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/decimal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/type/decimal.rb')
-rw-r--r--activerecord/lib/active_record/type/decimal.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/type/decimal.rb b/activerecord/lib/active_record/type/decimal.rb
index 1c0147a797..6eed005345 100644
--- a/activerecord/lib/active_record/type/decimal.rb
+++ b/activerecord/lib/active_record/type/decimal.rb
@@ -11,6 +11,10 @@ module ActiveRecord
::BigDecimal
end
+ def type_cast_for_schema(value)
+ value.to_s
+ end
+
private
def cast_value(value)