Skip to content

Commit 000578e

Browse files
authored
Merge pull request rails#43443 from soartec-lab/task/add-document-for-activerecord-verbose_query_logs
Add document `config.active_record.verbose_query_logs` into `Configuring Rails Applications` [skip ci]
2 parents e7fb2b1 + fdf73e1 commit 000578e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/source/configuring.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ Define the list of table that should be ignored when generating the schema
760760
cache. It accepts an `Array` of strings, representing the table names, or
761761
regular expressions.
762762

763+
#### `config.active_record.verbose_query_logs`
764+
765+
Specifies if source locations of methods that call database queries should be logged below relevant queries. By default, the flag is `true` in development and `false` in all other environments.
766+
763767
#### `ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans`
764768

765769
Controls whether the Active Record MySQL adapter will consider all `tinyint(1)` columns as booleans. Defaults to `true`.

0 commit comments

Comments
 (0)