From b43d0173972e732331a718a34e062b50260968d9 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sat, 31 Dec 2016 19:03:22 +0900 Subject: Dump array subtype options correctly Currently schema dumper does not dump array subtype `precision` and `scale` options. This commit fixes the issue. --- .../lib/active_record/connection_adapters/postgresql/oid/array.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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 -- cgit v1.2.3