-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f5a4b3
commit 8697639
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |