activerecord 7.0.8.7 → 7.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +86 -0
- data/README.rdoc +1 -0
- data/lib/active_record/associations.rb +117 -117
- data/lib/active_record/attribute_methods/dirty.rb +12 -8
- data/lib/active_record/connection_adapters/abstract/connection_pool.rb +7 -3
- data/lib/active_record/connection_adapters/abstract/schema_statements.rb +0 -2
- data/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +7 -0
- data/lib/active_record/connection_adapters/mysql/schema_statements.rb +2 -1
- data/lib/active_record/connection_adapters/postgresql/oid/money.rb +3 -2
- data/lib/active_record/connection_adapters/postgresql/schema_statements.rb +1 -1
- data/lib/active_record/connection_handling.rb +1 -1
- data/lib/active_record/core.rb +5 -4
- data/lib/active_record/delegated_type.rb +3 -3
- data/lib/active_record/encryption/extended_deterministic_queries.rb +34 -62
- data/lib/active_record/fixtures.rb +12 -0
- data/lib/active_record/gem_version.rb +2 -2
- data/lib/active_record/insert_all.rb +3 -3
- data/lib/active_record/middleware/database_selector.rb +1 -1
- data/lib/active_record/migration.rb +3 -2
- data/lib/active_record/model_schema.rb +5 -3
- data/lib/active_record/nested_attributes.rb +3 -3
- data/lib/active_record/railtie.rb +1 -1
- data/lib/active_record/relation/delegation.rb +1 -1
- data/lib/active_record/relation.rb +1 -1
- data/lib/active_record/timestamp.rb +1 -1
- data/lib/arel/nodes/homogeneous_in.rb +1 -1
- metadata +10 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba6bd98f065f1eb5d1f2b783371c058fa2c1ef73bb5f4c132eb0d4c4f634ec9a
|
|
4
|
+
data.tar.gz: 5223c1bd0cd8384803c526bff79e2cb305537427877b290f570d06b5c61db1f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40dfdd2efb5cf455b795a76859ac5f91fc0a9c8f79d574881fd68009b105974e3142c1cd76ce4fd327a804bcd4e5425ca67f89ef25573582bb44d159b36a4053
|
|
7
|
+
data.tar.gz: 132c99c70475d0260ff7b46e0f5fb34b3bdb0f3ad58cd605656287449194c1158afa9f0f1aaa4b1cf4a85d700383b18863b989e3b569c12164d09ff3cbfaf0aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
|
1
|
+
## Rails 7.0.9 (October 28, 2025) ##
|
|
2
|
+
|
|
3
|
+
* Fix an issue that could cause database connection leaks
|
|
4
|
+
|
|
5
|
+
If Active Record successfully connected to the database, but then failed
|
|
6
|
+
to read the server informations, the connection would be leaked until the
|
|
7
|
+
Ruby garbage collector triggers.
|
|
8
|
+
|
|
9
|
+
*Jean Boussier*
|
|
10
|
+
|
|
11
|
+
* Fix single quote escapes on default generated MySQL columns
|
|
12
|
+
|
|
13
|
+
MySQL 5.7.5+ supports generated columns, which can be used to create a column that is computed from an expression.
|
|
14
|
+
|
|
15
|
+
Previously, the schema dump would output a string with double escapes for generated columns with single quotes in the default expression.
|
|
16
|
+
|
|
17
|
+
This would result in issues when importing the schema on a fresh instance of a MySQL database.
|
|
18
|
+
|
|
19
|
+
Now, the string will not be escaped and will be valid Ruby upon importing of the schema.
|
|
20
|
+
|
|
21
|
+
*Yash Kapadia*
|
|
22
|
+
|
|
23
|
+
* Fix `Relation#transaction` to not apply a default scope
|
|
24
|
+
|
|
25
|
+
The method was incorrectly setting a default scope around its block:
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
Post.where(published: true).transaction do
|
|
29
|
+
Post.count # SELECT COUNT(*) FROM posts WHERE published = FALSE;
|
|
30
|
+
end
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
*Jean Boussier*
|
|
34
|
+
|
|
35
|
+
* Fix renaming primary key index when renaming a table with a UUID primary key
|
|
36
|
+
in PostgreSQL.
|
|
37
|
+
|
|
38
|
+
*fatkodima*
|
|
39
|
+
|
|
40
|
+
* Fix `where(field: values)` queries when `field` is a serialized attribute
|
|
41
|
+
(for example, when `field` uses `ActiveRecord::Base.serialize` or is a JSON
|
|
42
|
+
column).
|
|
43
|
+
|
|
44
|
+
*João Alves*
|
|
45
|
+
|
|
46
|
+
* Don't mark Float::INFINITY as changed when reassigning it
|
|
47
|
+
|
|
48
|
+
When saving a record with a float infinite value, it shouldn't mark as changed
|
|
49
|
+
|
|
50
|
+
*Maicol Bentancor*
|
|
51
|
+
|
|
52
|
+
* `ActiveRecord::Base.table_name` now returns `nil` instead of raising
|
|
53
|
+
"undefined method `abstract_class?` for Object:Class".
|
|
54
|
+
|
|
55
|
+
*a5-stable*
|
|
56
|
+
|
|
57
|
+
* Fix upserting for custom `:on_duplicate` and `:unique_by` consisting of all
|
|
58
|
+
inserts keys.
|
|
59
|
+
|
|
60
|
+
*fatkodima*
|
|
61
|
+
|
|
62
|
+
* Fix `NoMethodError` when casting a PostgreSQL `money` value that uses a
|
|
63
|
+
comma as its radix point and has no leading currency symbol. For example,
|
|
64
|
+
when casting `"3,50"`.
|
|
65
|
+
|
|
66
|
+
*Andreas Reischuck* and *Jonathan Hefner*
|
|
67
|
+
|
|
68
|
+
* Fix duplicate quoting for check constraint expressions in schema dump when using MySQL
|
|
69
|
+
|
|
70
|
+
A check constraint with an expression, that already contains quotes, lead to an invalid schema
|
|
71
|
+
dump with the mysql2 adapter.
|
|
72
|
+
|
|
73
|
+
Fixes #42424.
|
|
74
|
+
|
|
75
|
+
*Felix Tscheulin*
|
|
76
|
+
|
|
77
|
+
* Fix MySQL expression index dumping with escaped quotes.
|
|
78
|
+
|
|
79
|
+
*fatkodima*
|
|
80
|
+
|
|
81
|
+
* Fix uniqueness validation on association not using overridden primary key.
|
|
82
|
+
|
|
83
|
+
*fatkodima*
|
|
84
|
+
|
|
85
|
+
|
|
1
86
|
## Rails 7.0.8.7 (December 10, 2024) ##
|
|
2
87
|
|
|
3
88
|
* No changes.
|
|
@@ -883,6 +968,7 @@
|
|
|
883
968
|
# Rails 7.0 (same behavior with IN clause, mergee side condition is consistently replaced)
|
|
884
969
|
Author.where(id: [david.id, mary.id]).merge(Author.where(id: bob)) # => [bob]
|
|
885
970
|
Author.where(id: david.id..mary.id).merge(Author.where(id: bob)) # => [bob]
|
|
971
|
+
```
|
|
886
972
|
|
|
887
973
|
*Rafael Mendonça França*
|
|
888
974
|
|
data/README.rdoc
CHANGED
|
@@ -167,6 +167,7 @@ Active Record is an implementation of the object-relational mapping (ORM)
|
|
|
167
167
|
pattern[https://www.martinfowler.com/eaaCatalog/activeRecord.html] by the same
|
|
168
168
|
name described by Martin Fowler:
|
|
169
169
|
|
|
170
|
+
>>>
|
|
170
171
|
"An object that wraps a row in a database table or view,
|
|
171
172
|
encapsulates the database access, and adds domain logic on that data."
|
|
172
173
|
|