aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorScott Ringwelski <sgringwe@mtu.edu>2016-02-01 20:17:17 -0800
committerScott Ringwelski <sgringwe@mtu.edu>2016-02-02 15:05:16 -0800
commit08a748118377f22823e06315f57db16e1ce3a7c3 (patch)
tree3d8142294799177b9b7a0be86d1fda7ca9eb960b /guides
parent49e0c4e8642a0160bd01c4490b4babe89108da48 (diff)
downloadrails-08a748118377f22823e06315f57db16e1ce3a7c3.tar.gz
rails-08a748118377f22823e06315f57db16e1ce3a7c3.tar.bz2
rails-08a748118377f22823e06315f57db16e1ce3a7c3.zip
Add initial support for allowing an error on order or limit of queries being ignored in batches
add some documentation and add 4 tests regarding error vs. warning behavior fix a typo when referring to the message go back to default in tests so that ordering is not important. use a constant instead of method. fix assert_nothing_raised call. use self.klass to allow per class configuration remove logger warn assets as that is tested elsewhere. pass error_on_ignore through find_each and find_in_batches also. add blocks to the finds so that the code is actually executed put the setting back to default in an ensure Add a changelog entry
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index d9c345fb71..26e13a4d74 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -279,6 +279,8 @@ All these configuration options are delegated to the `I18n` library.
* `config.active_record.schema_format` controls the format for dumping the database schema to a file. The options are `:ruby` (the default) for a database-independent version that depends on migrations, or `:sql` for a set of (potentially database-dependent) SQL statements.
+* `config.active_record.error_on_ignored_order_or_limit` specifies if an error should be raised if the order or limit of a query is ignored during a batch query. The options are true (raise error) or false (warn). Default is false.
+
* `config.active_record.timestamped_migrations` controls whether migrations are numbered with serial integers or with timestamps. The default is true, to use timestamps, which are preferred if there are multiple developers working on the same application.
* `config.active_record.lock_optimistically` controls whether Active Record will use optimistic locking and is true by default.