method

db_warnings_ignore

db_warnings_ignore
public

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"]