2014/05/18分のコミットです。
CHANGELOGにのったコミットは以下の通りです(詳細は本文参照)。
- The
:index
option in migrations, which previously was only available forreferences
, now works with any column types.
index
オプション便利そう。
rails guideのAPI Documentation Guidelines
の修正です。
不要なスペースの削除、説明の修正等を行っています。
A tiny pass through the PostgreSQL guide [ci skip]
rails guideのActive Record and PostgreSQL
ページの修正です。
改行の追加と、as
の追加だけです。
Feature detect based on Ruby version.
ActionView::Resolver::PathResolver#query
メソッドの修正です。
File.const_defined? :FNM_EXTGLOB
で処理の分岐を行っていたのをRUBY_VERSION >= '2.2.0'
を見るように修正しています。
2.2.0未満だと、Dir.glob
が誤った値をreturnする為、バージョンでチェックするようにしたようです。
pg guide, move introductory sentences into main content. [ci skip]
rails guideのActive Record and PostgreSQL
のページの修正です。
TOPにあったPostgreSQLの紹介の段落を本文中に移動しています。
Merge pull request #14962 from arunagw/aa-fix-rake-activerecord
ActiveRecordの一部タスクの再編成です。
# examples # before mysql:build_databases mysql:drop_databases mysql:rebuild_databases test_mysql2 # after db:mysql:build db:mysql:drop db:mysql:rebuild test:db:mysql2
namespaceの整理がされています。
pg, add missing nodocs for extracted modules.
PostgreSQLのAdapterの修正です。:nodoc:
をつけ忘れてたmoduleに:nodoc:
を付けています。
pg, re-introduce PostgreSQL::Utils
to unify schema/table extraction.
ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements#extract_schema_and_table
メソッドを、ActiveRecord::ConnectionAdapters::PostgreSQL::Utils
クラスを新設して、そちらに移動しています。
このコミットをrevertしています。
Merge pull request #15160 from sgrif/sg-destructured-each
ActiveRecord::Aggregations::ClassMethods#reader_method
のリファクタリングです。
HashのArrayのループ処理の引数をkey/valueに修正しています。
# before mapping.each { |pair| self[pair.first] = part.send(pair.last) } # after mapping.each { |key, value| self[key] = part.send(value) }
Make :index
in migrations work with all column types
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
の修正です。
カラム定義にindex
オプションが使えるようになりました。
# example t.string :item_number, index: true
おー、これは便利。
Merge pull request #15168 from eileencodes/return-early-on-delete-and-destroy-methods
activerecord/lib/active_record/associations/collection_association.rb
の修正です。
delete
メソッド及び、destroy
メソッドで、最初に引数の空チェックを行い、空の場合すぐreturnするよう修正しています。
test, inline DeveloperWithAggregate
, which is used by a single test.
activerecord/test/models/developer.rb
の修正です。
activerecord/test/models/developer.rb
で定義されていたDeveloperWithAggregate
クラスをactiverecord/test/cases/base_test.rb
に移動しています。
activerecord/test/cases/base_test.rb
でしか使用していない為との事です。