Only load MySQL2Adapter connection fix is MySQL2 is available.
Useful for Sqlite or Postgres installations.
This commit is contained in:
parent
4b96907e7c
commit
474a42cfbd
1 changed files with 14 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
|||
if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
|
||||
module ActiveRecord::ConnectionAdapters
|
||||
class Mysql2Adapter
|
||||
alias_method :execute_without_retry, :execute
|
||||
|
@ -15,3 +16,4 @@ module ActiveRecord::ConnectionAdapters
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue