@@ -180,12 +180,16 @@ module Tasks
180
180
singleton_class . attr_accessor :disable_prepared_statements
181
181
self . disable_prepared_statements = false
182
182
183
+ ##
184
+ # :singleton-method: lazily_load_schema_cache
183
185
# Lazily load the schema cache. This option will load the schema cache
184
186
# when a connection is established rather than on boot. If set,
185
187
# +config.active_record.use_schema_cache_dump+ will be set to false.
186
188
singleton_class . attr_accessor :lazily_load_schema_cache
187
189
self . lazily_load_schema_cache = false
188
190
191
+ ##
192
+ # :singleton-method: schema_cache_ignored_tables
189
193
# A list of tables or regex's to match tables to ignore when
190
194
# dumping the schema cache. For example if this is set to +[/^_/]+
191
195
# the schema cache will not dump tables named with an underscore.
@@ -206,6 +210,8 @@ def self.default_timezone=(default_timezone)
206
210
207
211
self . default_timezone = :utc
208
212
213
+ ##
214
+ # :singleton-method: db_warnings_action
209
215
# The action to take when database query produces warning.
210
216
# Must be one of :ignore, :log, :raise, :report, or a custom proc.
211
217
# The default is :ignore.
@@ -235,6 +241,8 @@ def self.db_warnings_action=(action)
235
241
236
242
self . db_warnings_action = :ignore
237
243
244
+ ##
245
+ # :singleton-method: db_warnings_ignore
238
246
# Specify allowlist of database warnings.
239
247
singleton_class . attr_accessor :db_warnings_ignore
240
248
self . db_warnings_ignore = [ ]
@@ -253,6 +261,8 @@ def self.legacy_connection_handling=(_)
253
261
MSG
254
262
end
255
263
264
+ ##
265
+ # :singleton-method: async_query_executor
256
266
# Sets the async_query_executor for an application. By default the thread pool executor
257
267
# set to +nil+ which will not run queries in the background. Applications must configure
258
268
# a thread pool executor to use this feature. Options are:
@@ -294,15 +304,15 @@ def self.global_executor_concurrency # :nodoc:
294
304
self . index_nested_attribute_errors = false
295
305
296
306
##
297
- # :singleton-method:
307
+ # :singleton-method: verbose_query_logs
298
308
#
299
309
# Specifies if the methods calling database queries should be logged below
300
310
# their relevant queries. Defaults to false.
301
311
singleton_class . attr_accessor :verbose_query_logs
302
312
self . verbose_query_logs = false
303
313
304
314
##
305
- # :singleton-method:
315
+ # :singleton-method: queues
306
316
#
307
317
# Specifies the names of the queues used by background jobs.
308
318
singleton_class . attr_accessor :queues
@@ -327,7 +337,7 @@ def self.global_executor_concurrency # :nodoc:
327
337
self . commit_transaction_on_non_local_return = false
328
338
329
339
##
330
- # :singleton-method:
340
+ # :singleton-method: warn_on_records_fetched_greater_than
331
341
# Specify a threshold for the size of query result sets. If the number of
332
342
# records in the set exceeds the threshold, a warning is logged. This can
333
343
# be used to identify queries which load thousands of records and
@@ -339,14 +349,14 @@ def self.global_executor_concurrency # :nodoc:
339
349
self . application_record_class = nil
340
350
341
351
##
342
- # :singleton-method:
352
+ # :singleton-method: action_on_strict_loading_violation
343
353
# Set the application to log or raise when an association violates strict loading.
344
354
# Defaults to :raise.
345
355
singleton_class . attr_accessor :action_on_strict_loading_violation
346
356
self . action_on_strict_loading_violation = :raise
347
357
348
358
##
349
- # :singleton-method:
359
+ # :singleton-method: schema_format
350
360
# Specifies the format to use when dumping the database schema with Rails'
351
361
# Rakefile. If :sql, the schema is dumped as (potentially database-
352
362
# specific) SQL statements. If :ruby, the schema is dumped as an
@@ -357,27 +367,27 @@ def self.global_executor_concurrency # :nodoc:
357
367
self . schema_format = :ruby
358
368
359
369
##
360
- # :singleton-method:
370
+ # :singleton-method: error_on_ignored_order
361
371
# Specifies if an error should be raised if the query has an order being
362
372
# ignored when doing batch queries. Useful in applications where the
363
373
# scope being ignored is error-worthy, rather than a warning.
364
374
singleton_class . attr_accessor :error_on_ignored_order
365
375
self . error_on_ignored_order = false
366
376
367
377
##
368
- # :singleton-method:
378
+ # :singleton-method: timestamped_migrations
369
379
# Specify whether or not to use timestamps for migration versions
370
380
singleton_class . attr_accessor :timestamped_migrations
371
381
self . timestamped_migrations = true
372
382
373
383
##
374
- # :singleton-method:
384
+ # :singleton-method: migration_strategy
375
385
# Specify strategy to use for executing migrations.
376
386
singleton_class . attr_accessor :migration_strategy
377
387
self . migration_strategy = Migration ::DefaultStrategy
378
388
379
389
##
380
- # :singleton-method:
390
+ # :singleton-method: dump_schema_after_migration
381
391
# Specify whether schema dump should happen at the end of the
382
392
# bin/rails db:migrate command. This is true by default, which is useful for the
383
393
# development environment. This should ideally be false in the production
@@ -386,7 +396,7 @@ def self.global_executor_concurrency # :nodoc:
386
396
self . dump_schema_after_migration = true
387
397
388
398
##
389
- # :singleton-method:
399
+ # :singleton-method: dump_schemas
390
400
# Specifies which database schemas to dump when calling db:schema:dump.
391
401
# If the value is :schema_search_path (the default), any schemas listed in
392
402
# schema_search_path are dumped. Use :all to dump all schemas regardless
@@ -410,7 +420,7 @@ def self.suppress_multiple_database_warning=(value)
410
420
end
411
421
412
422
##
413
- # :singleton-method:
423
+ # :singleton-method: verify_foreign_keys_for_fixtures
414
424
# If true, Rails will verify all foreign keys in the database after loading fixtures.
415
425
# An error will be raised if there are any foreign key violations, indicating incorrectly
416
426
# written fixtures.
@@ -419,7 +429,7 @@ def self.suppress_multiple_database_warning=(value)
419
429
self . verify_foreign_keys_for_fixtures = false
420
430
421
431
##
422
- # :singleton-method:
432
+ # :singleton-method: allow_deprecated_singular_associations_name
423
433
# If true, Rails will continue allowing plural association names in where clauses on singular associations
424
434
# This behavior will be removed in Rails 7.2.
425
435
singleton_class . attr_accessor :allow_deprecated_singular_associations_name
@@ -429,29 +439,29 @@ def self.suppress_multiple_database_warning=(value)
429
439
self . query_transformers = [ ]
430
440
431
441
##
432
- # :singleton-method:
442
+ # :singleton-method: use_yaml_unsafe_load
433
443
# Application configurable boolean that instructs the YAML Coder to use
434
444
# an unsafe load if set to true.
435
445
singleton_class . attr_accessor :use_yaml_unsafe_load
436
446
self . use_yaml_unsafe_load = false
437
447
438
448
##
439
- # :singleton-method:
449
+ # :singleton-method: raise_int_wider_than_64bit
440
450
# Application configurable boolean that denotes whether or not to raise
441
451
# an exception when the PostgreSQLAdapter is provided with an integer that
442
452
# is wider than signed 64bit representation
443
453
singleton_class . attr_accessor :raise_int_wider_than_64bit
444
454
self . raise_int_wider_than_64bit = true
445
455
446
456
##
447
- # :singleton-method:
457
+ # :singleton-method: yaml_column_permitted_classes
448
458
# Application configurable array that provides additional permitted classes
449
459
# to Psych safe_load in the YAML Coder
450
460
singleton_class . attr_accessor :yaml_column_permitted_classes
451
461
self . yaml_column_permitted_classes = [ Symbol ]
452
462
453
463
##
454
- # :singleton-method:
464
+ # :singleton-method: generate_secure_token_on
455
465
# Controls when to generate a value for <tt>has_secure_token</tt>
456
466
# declarations. Defaults to <tt>:create</tt>.
457
467
singleton_class . attr_accessor :generate_secure_token_on
@@ -466,7 +476,7 @@ def self.marshalling_format_version=(value)
466
476
end
467
477
468
478
##
469
- # :singleton-method:
479
+ # :singleton-method: protocol_adapters
470
480
# Provides a mapping between database protocols/DBMSs and the
471
481
# underlying database adapter to be used. This is used only by the
472
482
# <tt>DATABASE_URL</tt> environment variable.
0 commit comments