diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-31 19:03:22 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-01 02:56:13 +0900 |
commit | b43d0173972e732331a718a34e062b50260968d9 (patch) | |
tree | 7fb98dd7dc1540b78ee8a846fad80c8ca83fe7ba /activerecord/lib | |
parent | d753645d40e925973724e4c3a8617b654da90e41 (diff) | |
download | rails-b43d0173972e732331a718a34e062b50260968d9.tar.gz rails-b43d0173972e732331a718a34e062b50260968d9.tar.bz2 rails-b43d0173972e732331a718a34e062b50260968d9.zip |
Dump array subtype options correctly
Currently schema dumper does not dump array subtype `precision` and
`scale` options. This commit fixes the issue.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb index d9daaaa23e..8ccdd69b1d 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb @@ -6,7 +6,7 @@ module ActiveRecord include Type::Helpers::Mutable attr_reader :subtype, :delimiter - delegate :type, :user_input_in_time_zone, :limit, to: :subtype + delegate :type, :user_input_in_time_zone, :limit, :precision, :scale, to: :subtype def initialize(subtype, delimiter = ",") @subtype = subtype |