- 25 7月, 2017 1 次提交
-
-
由 Rafael França 提交于
Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`
-
- 22 7月, 2017 1 次提交
-
-
由 Rafael França 提交于
Match destroyed_by_association for has_one to has_many
-
- 21 7月, 2017 7 次提交
-
-
由 Maxime Lapointe 提交于
Post.where(id: 1).or(Post.where(id: 2)).where(foo: 3).unscope(where: :foo).where_clause.binds.map(&:value) Would return [2, 3] instead of the expected [1,2]
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Since 5c71000d, it has lost to be able to unscope `default_scope` in STI associations. This change will use `.empty_scope?` instead of `.values.empty?` to regard as an empty scope if only have `type_condition`.
-
由 Ryuta Kamizono 提交于
Since MariaDB 10.2, `CURRENT_TIMESTAMP` is shown as a function (`current_timestamp()`). Fix matching column default to address that case. Fixes #29698.
-
由 Ryuta Kamizono 提交于
Since MariaDB 10.2.5, `information_schema` supports Virtual Columns. Fixes #29670.
-
由 Ryuta Kamizono 提交于
Currently `version` method always returns `5.5.5` because the `full_version` is `5.5.5-10.x.y-MariaDB...` since MariaDB 10.x. It should be ignored if the prefix is `5.5.5-`.
-
由 Ryuta Kamizono 提交于
`test_middleware_caches` is sometimes failed since #29454. The failure is due to schema statements are affected by query caching. Bypassing query caching for schema statements to avoid the issue.
-
- 20 7月, 2017 1 次提交
-
-
由 Kasper Timm Hansen 提交于
-
- 17 7月, 2017 1 次提交
-
-
由 Sean Griffin 提交于
This change was introduced by #18109. The intent of that change was to specifically apply `unscoped`, not to allow all changes to `current_scope` to affect the join. The idea of allowing `current_scope` to affect joins is interesting and potentially more consistent, but has sever problems associated with it. The fact that we're specifically stripping out joins indicates one such problem (and potentially leads to invalid queries). Ultimately it's difficult to reason about what `Posts.joins(:users)` actually means if it's affected by `User.current_scope`, and it's difficult to specifically control what does or doesn't get added. If we were starting from scratch, I don't think I'd have `joins` be affected by `default_scope` either, but that's too big of a breaking change to make at this point. With this change, we no longer apply `current_scope` when bringing in joins, with the singular exception of the motivating use case which introduced this bug, which is providing a way to *opt-out* of having the default scope apply to joins. Fixes #29338.
-
- 11 7月, 2017 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Don't eagerly require Rails' minitest plugin.
-
- 05 7月, 2017 1 次提交
-
-
由 Rafael França 提交于
Add missing `attr_name.to_s` in `AttributeMutationTracker`
-
- 29 6月, 2017 3 次提交
-
-
由 Rafael França 提交于
Fix to scoping is correctly restored
-
由 Rafael França 提交于
Fix `ids_reader` to respect case sensitive primary key
-
由 Eileen M. Uchitelle 提交于
ActiveRecord: do not create "has many through" records that have been removed
-
- 27 6月, 2017 5 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Ensure that using correct alias tracker
-
由 Rafael França 提交于
Rails 5.1.2.rc1 regression - Clear offset cache on CollectionProxy reset/reload
-
由 Rafael França 提交于
Rails 5.1.2.rc1 regression - Clear offset cache on CollectionProxy reset/reload
-
由 Rafael França 提交于
Pass `structure_dump_flags` / `structure_load_flags` options before any other:
-
- 21 6月, 2017 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 20 6月, 2017 1 次提交
-
-
由 Rafael França 提交于
Fix `Relation#exists?` queries with query cache
-
- 16 6月, 2017 2 次提交
-
-
由 Rafael França 提交于
Don't map id to primary key in raw_write_attribute
-
由 Rafael França 提交于
Fix `dump_schema_information` with empty versions
-
- 15 6月, 2017 1 次提交
-
-
由 Rafael França 提交于
Avoid overwriting the methods of `AttributeMethods::PrimaryKey`
-
- 05 6月, 2017 3 次提交
-
-
由 Matthew Draper 提交于
Fix `default_scoped` with defined `default_scope` on STI model
-
由 Matthew Draper 提交于
load_schema! is overridden by attribute modules, so we need to wait until it has returned.
-
由 Matthew Draper 提交于
Support PostgreSQL 10 `pg_sequence`
-
- 01 6月, 2017 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Add missing `delegate :extending, to: :all`
-
- 30 5月, 2017 2 次提交
-
-
由 Matthew Draper 提交于
Fix association with extension issues
-
由 Rafael França 提交于
Fix UUID column with `null: true` and `default: nil`
-
- 27 5月, 2017 1 次提交
-
-
由 Rafael França 提交于
Doc updates for ActiveRecord::Batches
-
- 26 5月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
Add a Monitor to ModelSchema#load_schema
-
- 25 5月, 2017 2 次提交
-
-
由 Matthew Draper 提交于
Fix crashing on circular left join references with scoping
-
由 Matthew Draper 提交于
Both reference id and type should be `NOT NULL` if `null: false` is specified
-
- 17 5月, 2017 1 次提交
-
-
由 Rafael Mendonça França 提交于
The object inside the scope is of the class that define the association not the associated class. [ci skip]
-
- 13 5月, 2017 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 12 5月, 2017 1 次提交
-
-
由 Aaron Patterson 提交于
Don't eager loading if unneeded for `FinderMethods#exists?`
-
- 06 5月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
Clarify deprecation message for #quoted_id
-