-
Currently the activerecord implementation gives a higher priority to attributes (and relations) than it gives to setters and getters.
Often it is desired to overwrite an attribute (from the PHP point…
-
When `partial_inserts` is set to `false` and attempting to create a record in a model with an `enum` where the default value does not match any of the `enum` keys, Rails incorrectly attempts to insert…
-
### Problem
Trends are broken for unknown reason. Is there any way to reset Trends or recover from this situation?
It looks like the database table does not exist (anymore):
```
/usr/sbin/fore…
-
Today you could use a Reactive Query Field to store `author.number_of_books` that was calculated without loading the `books` into memory, by doing:
```
readonly numberOfBooks = hasReactiveQueryFie…
-
Hi there,
One nice feature of ActiveModelSerializer-based rendering is the implicit serialization of instances of ActiveRecord::Base. See: https://github.com/rails-api/active_model_serializers/blob…
-
**Is your feature request related to a problem? Please describe.**
[`ActiveRecord::QueryLogs`](https://api.rubyonrails.org/classes/ActiveRecord/QueryLogs.html) (the [old `marginalia` gem](https://g…
-
### Steps to reproduce
It might just be my lack of understanding but can anyone explain to me why this fails:
```ruby
q1 = User.joins(:account).merge(Account.left_joins(:custom_attributes)).where('…
-
The ActiveRecord connection pool is designed so that if a thread (or a fiber) checks out a connection, the connection will remain attached to this thread until the server has finished processing the r…
-
I want to share a small bug with time field from Active Record.
Basically, the bug occurs when ActiveRecord deserialized time field's day at the turn of the day (Example: 23:00) and the current tim…
-
We are implementing multi-db on our app with help of ros-apartment gem. In our application we are using primary db as well as replica db for reading. We are switching write db with help of ros-apartme…