diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/value.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/value.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/value.rb b/activerecord/lib/active_record/connection_adapters/type/value.rb index 6687c9a2a4..b37c3bad58 100644 --- a/activerecord/lib/active_record/connection_adapters/type/value.rb +++ b/activerecord/lib/active_record/connection_adapters/type/value.rb @@ -2,9 +2,14 @@ module ActiveRecord module ConnectionAdapters module Type class Value # :nodoc: - def type; end + attr_reader :scale + + def initialize(options = {}) + options.assert_valid_keys(:scale) + @scale = options[:scale] + end - def extract_scale(sql_type); end + def type; end def extract_precision(sql_type); end |