以下の内容はhttps://y-yagi.hatenablog.com/entry/2023/02/23/050430より取得しました。


rails commit log流し読み(2023/02/22)

2023/02/22分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Add support for include index option

Active Recordの修正です。

index作成時にPostgreSQLINCLUDEパラメータ(非キー列をインデックスに含めれるようにするパラメータ)を指定出来るよう修正しています。

add_index(:users, :email, include: [:id, :created_at])
# =>  CREATE INDEX index_users_on_email USING btree (email) INCLUDE (id,

参考: PostgreSQL: Documentation: 15: CREATE INDEX


:nail_care: changelog from #44803

activerecord/CHANGELOG.mdの修正です。

先のINCLUDEパラメータの対応のエントリーについて、言い回しやexampleコードのフォーマットの修正等を行っています。


Respect Column default in Type::Serialized #46351

activerecord/lib/active_record/attribute_methods/serialization.rbactiverecord/lib/active_record/type/serialized.rbの修正です。

serializeメソッドで対象のDBカラムにデフォルト値が設定されている場合に、そのデフォルト値の設定が出来ないバグがあったのを修正しています。


Add "Rails Application Templates" to guides index, as WIP

guides/source/documents.yamlの修正です。

Rails Application Templatesのusageや各メソッドについて説明しているRails Application Templates guideが、guideのindexに表示されるよう修正しています。


Fix ruby:master re: ruby/feature/18285

Rubyのmasterで、"undefined method" errorが発生した場合にreceiverの#inspectを使用しなくなった事によりfailするようになってしまったテストがあったのを修正しています。

参考: Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call


Don't use a full blown version manager to install nodejs

railties/lib/rails/generators/rails/app/templates/Dockerfile.ttの修正です。

NodejsをインストールするのにVoltaを使用していたのをnode-buildを使用するよう修正しています。VoltaはARMで動かない、Dockerfileでは不要なPATHの設定等をしてしまう、等の理由により変更になっています。


Merge pull request #47452 from Shopify/has-many-through-with-query-constraints

activerecord/lib/active_record/associations/association_scope.rbの修正です。

has_many through associationにcomposite query_constraintsを指定出来るよう修正しています。


Download node-build via GitHub archives

railties/lib/rails/generators/rails/app/templates/Dockerfile.ttの修正です。

node-buildをインストールするのにgitのブランチではなくGitHubのarchiveからダウンロードするよう修正しています。archiveからの方からnダウンロードが早いはず、な為。




以上の内容はhttps://y-yagi.hatenablog.com/entry/2023/02/23/050430より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14