2021/07/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activerecord/CHANGELOG.md
の修正です。
dump
をdumb
にタイポしていたのを修正しています。
Merge pull request #42805 from lloydk/heading-level
rails guideの修正です。
見出しのレベルがずれている箇所があったのを修正しています。
Add change tracking methods for belongs_to associations
Active Recordの修正です。
belongs_to
association用のtracking methods(association_changed?
とassociation_previously_changed?
)を追加しています。
post.category # => #<Category id: 1, name: "Ruby"> post.category = Category.second # => #<Category id: 2, name: "Programming"> post.category_changed? # => true post.category_previously_changed? # => false post.save! post.category_changed? # => false post.category_previously_changed? # => true
Merge pull request #42740 from dmarcoux/document-active_storage-attachment-variant
activestorage/app/models/active_storage/attachment.rb
のdocの修正です。
ActiveStorage::Attachment#variant
メソッドにdocを追加しています。
Document ActiveStorage::Preview#download
activestorage/app/models/active_storage/preview.rb
のdocの修正です。
ActiveStorage::Preview#download
メソッドにdocを追加しています。
Merge pull request #42803 from gregschmit/gns/fix-migrate-status-order
activerecord/lib/active_record/migration.rb
の修正です。
db:migrate:status
でmigrationの一覧を表示する際に、versionをinterに変換してからsortするよう修正しています。20210622175330
と 226
というversionのファイルがあった場合に、226
が先に表示されるようにする為。
Fix ActiveStorage::Preview#download method doc [ci-skip]
activestorage/app/models/active_storage/preview.rb
のdocの修正です。
ActiveStorage::Preview#download
メソッドのdocの言い回しを修正しています。