diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 18:16:30 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 18:16:32 -0200 |
commit | 0b35a0d76261b5672884af921792ea5551d9d202 (patch) | |
tree | c03529fdfbb56dc23ddcfd92eacd4bdff29fcb9f | |
parent | b4e9577f9b1cf9c29e106af3287a01f90dbac790 (diff) | |
download | rails-0b35a0d76261b5672884af921792ea5551d9d202.tar.gz rails-0b35a0d76261b5672884af921792ea5551d9d202.tar.bz2 rails-0b35a0d76261b5672884af921792ea5551d9d202.zip |
Improve AR changelog, add entry for migration error improvements #12462 [ci skip]
-rw-r--r-- | activerecord/CHANGELOG.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 16d5e15489..f0ae0050a7 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,8 +1,18 @@ -* `Model.offset(4).last` now returns the 4th record from the end, not just last record. +* Improve formatting of migration exception messages: make them easier to read + with line breaks before/after, and improve the error for pending migrations. + + *John Bachir* + +* Fix `last` with `offset` to return the proper record instead of always the last one. + + Example: + + Model.offset(4).last + # => returns the 4th record from the end. Fixes #7441. - *kostya* + *kostya*, *Lauro Caetano* * `type_to_sql` returns a `String` for unmapped columns. This fixes an error when using unmapped array types in PG |