We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad37065 + e81cf4b commit 6d638f9Copy full SHA for 6d638f9
activerecord/lib/active_record.rb
@@ -259,6 +259,9 @@ def self.db_warnings_action=(action)
259
##
260
# :singleton-method: db_warnings_ignore
261
# Specify allowlist of database warnings.
262
+ # Can be a string, regular expression, or an error code from the database.
263
+ #
264
+ # ActiveRecord::Base.db_warnings_ignore = [/^SHOW WARNINGS` did not return the warnings/, "01000"]
265
singleton_class.attr_accessor :db_warnings_ignore
266
self.db_warnings_ignore = []
267
0 commit comments