diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-05 01:58:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-05 01:58:08 -0700 |
commit | 9d728cd70810eed775c77446d9a3bccc1081d3cd (patch) | |
tree | 853c63186df4d92b5c7650779d93745a5ceb0e44 /activerecord/lib/active_record/connection_adapters | |
parent | 3970432fcb6a04e6f003e8295e9b2ee8e5b22390 (diff) | |
parent | e4fe4973cf43ecd5279b376ac847181259a92678 (diff) | |
download | rails-9d728cd70810eed775c77446d9a3bccc1081d3cd.tar.gz rails-9d728cd70810eed775c77446d9a3bccc1081d3cd.tar.bz2 rails-9d728cd70810eed775c77446d9a3bccc1081d3cd.zip |
Merge pull request #10482 from scudco/10432-fix-add-column-with-array
Fixes #10432 add_column not creating array columns in PostgreSQL
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index aabedf15e9..c982d65d65 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -269,6 +269,7 @@ module ActiveRecord end column.limit = limit + column.array = options[:array] if column.respond_to?(:array) column.precision = options[:precision] column.scale = options[:scale] column.default = options[:default] |