Skip to content

Commit

Permalink
Wrap JDBC specific fix in postgres adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpasquini committed May 15, 2024
1 parent 2e1d6cd commit 231a567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/apartment/active_record/postgresql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
module Apartment::PostgreSqlAdapterPatch
def default_sequence_name(table, _column)
res = super
res.delete!('"') # if rescued in super_method, trim leading and trailing quotes

# for JDBC driver, if rescued in super_method, trim leading and trailing quotes
res.delete!('"') if defined?(JRUBY_VERSION)

schema_prefix = "#{Apartment::Tenant.current}."
default_tenant_prefix = "#{Apartment::Tenant.default_tenant}."
Expand Down

0 comments on commit 231a567

Please sign in to comment.