2016-07-10 16:43:12 +00:00
|
|
|
* Add newline between each migration in `structure.sql`.
|
2016-07-13 15:44:37 +00:00
|
|
|
|
|
|
|
Keeps schema migration inserts as a single commit, but allows for easier
|
2016-07-10 16:43:12 +00:00
|
|
|
git diffing.
|
|
|
|
|
|
|
|
Fixes #25504.
|
2016-07-13 15:44:37 +00:00
|
|
|
|
|
|
|
*Grey Baker*, *Norberto Lopes*
|
|
|
|
|
2016-07-13 16:21:41 +00:00
|
|
|
* The flag `error_on_ignored_order_or_limit` has been deprecated in favor of
|
|
|
|
the current `error_on_ignored_order`.
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
|
|
|
* Batch processing methods support `limit`:
|
|
|
|
|
|
|
|
Post.limit(10_000).find_each do |post|
|
|
|
|
# ...
|
|
|
|
end
|
|
|
|
|
|
|
|
It also works in `find_in_batches` and `in_batches`.
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
2016-07-11 14:43:02 +00:00
|
|
|
* Using `group` with an attribute that has a custom type will properly cast
|
|
|
|
the hash keys after calling a calculation method like `count`. Fixes #25595.
|
|
|
|
|
|
|
|
*Sean Griffin*
|
|
|
|
|
2016-07-09 12:21:31 +00:00
|
|
|
* Fix the generated `#to_param` method to use `omission: ''` so that
|
2016-02-11 19:22:09 +00:00
|
|
|
the resulting output is actually up to 20 characters, not
|
|
|
|
effectively 17 to leave room for the default "...".
|
|
|
|
Also call `#parameterize` before `#truncate` and make the
|
|
|
|
`separator: /-/` to maximize the information included in the
|
|
|
|
output.
|
|
|
|
|
2016-07-09 12:21:31 +00:00
|
|
|
Fixes #23635.
|
2016-02-11 19:22:09 +00:00
|
|
|
|
|
|
|
*Rob Biedenharn*
|
|
|
|
|
2016-07-05 23:07:26 +00:00
|
|
|
* Ensure concurrent invocations of the connection reaper cannot allocate the
|
|
|
|
same connection to two threads.
|
|
|
|
|
|
|
|
Fixes #25585.
|
|
|
|
|
|
|
|
*Matthew Draper*
|
|
|
|
|
2016-06-28 18:54:17 +00:00
|
|
|
* Inspecting an object with an associated array of over 10 elements no longer
|
|
|
|
truncates the array, preventing `inspect` from looping infinitely in some
|
|
|
|
cases.
|
|
|
|
|
|
|
|
*Kevin McPhillips*
|
|
|
|
|
2016-06-29 13:46:45 +00:00
|
|
|
* Removed the unused methods `ActiveRecord::Base.connection_id` and
|
2016-07-09 12:21:31 +00:00
|
|
|
`ActiveRecord::Base.connection_id=`.
|
2016-06-29 13:46:45 +00:00
|
|
|
|
|
|
|
*Sean Griffin*
|
|
|
|
|
2016-05-31 13:56:19 +00:00
|
|
|
* Ensure hashes can be assigned to attributes created using `composed_of`.
|
|
|
|
Fixes #25210.
|
|
|
|
|
|
|
|
*Sean Griffin*
|
|
|
|
|
2016-05-21 12:51:36 +00:00
|
|
|
* Fix logging edge case where if an attribute was of the binary type and
|
|
|
|
was provided as a Hash.
|
2016-05-21 12:55:06 +00:00
|
|
|
|
2016-05-21 12:51:36 +00:00
|
|
|
*Jon Moss*
|
|
|
|
|
2016-02-22 16:36:08 +00:00
|
|
|
* Handle JSON deserialization correctly if the column default from database
|
|
|
|
adapter returns `''` instead of `nil`.
|
|
|
|
|
|
|
|
*Johannes Opper*
|
2016-05-06 21:54:40 +00:00
|
|
|
|
2016-07-09 12:21:31 +00:00
|
|
|
* Introduce `ActiveRecord::TransactionSerializationError` for catching
|
2016-05-21 11:25:01 +00:00
|
|
|
transaction serialization failures or deadlocks.
|
|
|
|
|
|
|
|
*Erol Fornoles*
|
|
|
|
|
2016-07-09 12:21:31 +00:00
|
|
|
* PostgreSQL: Fix db:structure:load silent failure on SQL error.
|
2016-05-10 17:44:33 +00:00
|
|
|
|
2016-07-09 12:21:31 +00:00
|
|
|
The command line flag `-v ON_ERROR_STOP=1` should be used
|
|
|
|
when invoking `psql` to make sure errors are not suppressed.
|
2016-05-10 17:44:33 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
psql -v ON_ERROR_STOP=1 -q -f awesome-file.sql my-app-db
|
|
|
|
|
|
|
|
Fixes #23818.
|
|
|
|
|
|
|
|
*Ralin Chimev*
|
|
|
|
|
|
|
|
|
2016-05-10 04:07:09 +00:00
|
|
|
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/activerecord/CHANGELOG.md) for previous changes.
|