lib/ridgepole/dsl_parser/context.rb in ridgepole-1.0.6 vs lib/ridgepole/dsl_parser/context.rb in ridgepole-1.0.7

- old
+ new

@@ -94,10 +94,13 @@ def add_partition(table_name, type, columns, partition_definitions: []) partition_definitions.each do |partition_definition| values = partition_definition.fetch(:values) raise ArgumentError unless values.is_a?(Hash) - values[:in] = Array.wrap(values[:in]) if values.key?(:in) + if values.key?(:in) + values[:in] = Array.wrap(values[:in]) + values[:in] = values[:in].map(&:to_s) if Ridgepole::ConnectionAdapters.postgresql? + end values[:to] = Array.wrap(values[:to]) if values.key?(:to) values[:from] = Array.wrap(values[:from]) if values.key?(:from) end @__definition[table_name][:partition] = { type: type,