1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/scoping
Ryuta Kamizono abae7fcd5f Allow attribute aliases for timestamp magic columns
For now, timestamp magic columns are only allowed for real physical
columns, it is not a matter for newly created app, but it is harder to
get the usefulness for legacy databases.

The reason that doesn't work is some low-level API does not care about
attribute aliases. I think that uses low-level API without attribute
alias resolution for timestamp attributes is not intended (e.g.
`updated_at_before_type_cast` works, but `has_attribute?("updated_at")`
and `_read_attribute("updated_at")` doesn't work).

I've addressed all missing attribute alias resolution for timestamp
attributes to work that consistently.

Fixes #37554.
2020-06-01 21:29:33 +09:00
..
default_scoping_test.rb Allow attribute aliases for timestamp magic columns 2020-06-01 21:29:33 +09:00
named_scoping_test.rb Do not use object_id on Active Record object directly 2020-05-24 11:08:24 +09:00
relation_scoping_test.rb Merge pull request #38319 from kamipo/make_default_scoped_public 2020-01-28 05:53:13 +09:00