Skip to content

Commit e5bc396

Browse files
committed
Possible jruby postgres fix
strip leading and trailing quotes from default_sequence_name override for Postgre adapter.
1 parent 7fed110 commit e5bc396

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/apartment/active_record/postgresql_adapter.rb

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
module Apartment::PostgreSqlAdapterPatch
99
def default_sequence_name(table, _column)
1010
res = super
11+
res.delete!('"') # if rescued in super_method, trim leading and trailing quotes
12+
1113
schema_prefix = "#{Apartment::Tenant.current}."
1214
default_tenant_prefix = "#{Apartment::Tenant.default_tenant}."
1315

0 commit comments

Comments
 (0)