2015/09/06分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Support dropping indexes concurrently in Postgres
- Deprecate passing conditions to AR::Relation destroy_all and delete_all methods
Support dropping indexes concurrently in Postgres
Active Recordの修正です。
PostgreSQL adapterで、remove_index
メソッドにCONCURRENTLYパラメータを指定出来るよう修正しています。
例。
remove_index(:people, name: "index_people_on_last_name", algorithm: :concurrently)
ちなみに、CONCURRENTLYパラメータは、指定すると、インデックスのテーブルに対して同時に実行される選択、挿入、更新、削除をロックすることなくインデックスの削除を行います。詳細は、こちら を参照。
Use ERB::Utils to percent encode hfvalue
parts of mailto
actionview/lib/action_view/helpers/url_helper.rb
の修正です。
use path escaping for email addressesで、emailのpathのエスケープ処理に、Rack::Utils.escape_path
メソッドを使用するよう修正したのですが、 hfvalueパートは必ずパーセントエンコードされている必要があり、変更後の対応ではエンコード処理がされなくなてしまっていた為、コミットをrevertして元の処理に戻しています。
activesupport/lib/active_support/core_ext/file/atomic.rb
のdoc、及び
guides/source/upgrading_ruby_on_rails.md
の修正です。
各docから不要なthe
を削除しています。グラマーの修正。
Deprecate passing conditions to AR::Relation destroy_all and delete_all methods
activerecord/lib/active_record/relation.rb
の修正です。
ActiveRecord::Relation#delete_all
、ActiveRecord::Relation#destroy_all
メソッドに削除するレコードの条件を指定するconditions
オプションが、deprecateになりました。
同じ事をしたい場合に、先にwhere
メソッドを呼び出して条件を指定してからdelete_all
/ destroy_all
を呼び出すようにするように、との事です。
例。
Topic.where(conditions).destroy_all