method
db_warnings_ignore
v8.1.1 -
Show latest stable
- Class:
ActiveRecord
db_warnings_ignorepublic
Specify allowlist of database warnings. Can be a string, regular expression, or an error code from the database.
ActiveRecord::Base.db_warnings_ignore = [/`SHOW WARNINGS` did not return the warnings/, "01000"]