Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Feb 16, 2025
1 parent 7f5a4b3 commit 8697639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/monkeypatches/departure.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module Departure
module Migration
# Make all connections in the connection pool to use PerconaAdapter
# instead of the current adapter.
# Make all connections in the connection pool NOT use PerconaAdapter instead of the current adapter.
# Ref https://github.com/departurerb/departure/issues/110.
def reconnect_with_percona
ActiveRecord::Base.establish_connection(connection_config.merge(adapter: "percona"))
end
end
end

puts "WARNING: The monkeypatch #{__FILE__} was written for version 6.7.0 of the departure gem, but you are running #{PhraseApp::VERSION}. Please update or remove the monkeypatch." unless Departure::VERSION == "6.7.0"
puts "WARNING: The monkeypatch #{__FILE__} was written for version 6.7.0 of the departure gem, but you are running #{Departure::VERSION}. Please update or remove the monkeypatch." unless Departure::VERSION == "6.7.0"

0 comments on commit 8697639

Please sign in to comment.