Printing queries executed by ActiveRercord
Starting of Rails 6, there's a handy way to specify the level of verbocity to ActiveRecord queries:
ActiveRecord::Base.verbose_query_logs = true
Full documentation here
No more adding a custom logger to ActiveRecord::Base.logger