lib/torque/postgresql/adapter/quoting.rb in torque-postgresql-2.1.3 vs lib/torque/postgresql/adapter/quoting.rb in torque-postgresql-2.2.0
- old
+ new
@@ -18,10 +18,10 @@
schema = schema || name_schema || 'public'
Name.new(schema, table).quoted
end
def quote_default_expression(value, column)
- if value.class <= Array
+ if column.dig(:options, :array) && value.class <= Array
quote(value) + '::' + column.sql_type
else
super
end
end