Skip to content

Commit

Permalink
Possible jruby postgres fix
Browse files Browse the repository at this point in the history
strip leading and trailing quotes from default_sequence_name override for Postgre adapter.
  • Loading branch information
mrpasquini committed May 14, 2024
1 parent 7fed110 commit e5bc396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/apartment/active_record/postgresql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
module Apartment::PostgreSqlAdapterPatch
def default_sequence_name(table, _column)
res = super
res.delete!('"') # if rescued in super_method, trim leading and trailing quotes

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

Expand Down

0 comments on commit e5bc396

Please sign in to comment.