提交 00b62719 编写于 作者: S Sean Griffin

Merge pull request #23747 from kamipo/add_accidentally_removed_sharp

Add accidentally removed `#` [ci skip]
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
Example: Example:
PriceEstimate.where(estimate_of: [Treasure.find(1), Car.find(2)]) PriceEstimate.where(estimate_of: [Treasure.find(1), Car.find(2)])
=> SELECT "price_estimates".* FROM "price_estimates" # => SELECT "price_estimates".* FROM "price_estimates"
WHERE (("price_estimates"."estimate_of_type" = 'Treasure' AND "price_estimates"."estimate_of_id" = 1) WHERE (("price_estimates"."estimate_of_type" = 'Treasure' AND "price_estimates"."estimate_of_id" = 1)
OR ("price_estimates"."estimate_of_type" = 'Car' AND "price_estimates"."estimate_of_id" = 2)) OR ("price_estimates"."estimate_of_type" = 'Car' AND "price_estimates"."estimate_of_id" = 2))
*Philippe Huibonhoa* *Philippe Huibonhoa*
* Fix a bug where using `t.foreign_key` twice with the same `to_table` within * Fix a bug where using `t.foreign_key` twice with the same `to_table` within
the same table definition would only create one foreign key. the same table definition would only create one foreign key.
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
*Bogdan Gusiev*, *Jon Hinson* *Bogdan Gusiev*, *Jon Hinson*
* Rework `ActiveRecord::Relation#last` * Rework `ActiveRecord::Relation#last`.
1. Never perform additional SQL on loaded relation 1. Never perform additional SQL on loaded relation
2. Use SQL reverse order instead of loading relation if relation doesn't have limit 2. Use SQL reverse order instead of loading relation if relation doesn't have limit
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
* Allow `joins` to be unscoped. * Allow `joins` to be unscoped.
Closes #13775. Fixes #13775.
*Takashi Kokubun* *Takashi Kokubun*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册