aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/decimal_without_scale.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/type/decimal_without_scale.rb')
-rw-r--r--activerecord/lib/active_record/type/decimal_without_scale.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/type/decimal_without_scale.rb b/activerecord/lib/active_record/type/decimal_without_scale.rb
new file mode 100644
index 0000000000..cabdcecdd7
--- /dev/null
+++ b/activerecord/lib/active_record/type/decimal_without_scale.rb
@@ -0,0 +1,11 @@
+require 'active_record/type/integer'
+
+module ActiveRecord
+ module Type
+ class DecimalWithoutScale < Integer # :nodoc:
+ def type
+ :decimal
+ end
+ end
+ end
+end