2023/04/19分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix uniqueness validation, #id_in_database can be composite
activerecord/lib/active_record/attribute_methods/primary_key.rb
、
activerecord/lib/active_record/validations/uniqueness.rb
の修正です。
uniqueness validatitorにcomposite primary keyのサポートを追加しています。
Extend primary key methods to support composite keys
activerecord/lib/active_record/attribute_methods/primary_key.rb
の修正です。
id?
、id_was
等のprimary key用のメソッドにcomposite primary keyのサポートを追加しています。
Revert "Merge pull request #47864 from zenspider/zenspider/ar_core_hash"
Actve Recordのobjectがid
を保持していない場合のActiveRecord#==
及び#hash
メソッドの挙動を変更した、Fix AR#== and AR#hash when new_record?をRevertしています。breaking changeになってしまう為、まず既存の挙動のdeprecateからする必要がある為。
Update comment to reference values with single quotes as opposed to double
railties/lib/rails/generators/rails/app/templates/config/locales/en.yml
の修正です。
コメント内にあるsingle quoteで値をクォートして場合の例でdouble quoteを使用していたのをsingle quoteを使用するよう修正しています。
Adds support USING INDEX
for unique constraints in PostgreSQL.
Active Recordの修正です。
PostgreSQLのunique constraintにUSING INDEX
のサポートを追加しています。unique constraintを定義する際にusing_index
オプションを指定する事で、deferrableにするunique indexを変更出来るようになっています。
add_unique_key :users, deferrable: :immediate, using_index: 'unique_index_name'
Use proper heading for "N + 1 queries" section [ci-skip]
rails guideのActive Record Query Interface
の修正です。
見出しの調整を行っています。