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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00644e08468cbfbd7a16e2b56b687f63504197fa4c4cbc30c76561423d0ea9ed
4
- data.tar.gz: 5777ebf44e247f9807a10499e01cd0c9d7a4fb3b5f1205958010624ef0b70f79
3
+ metadata.gz: ba6bd98f065f1eb5d1f2b783371c058fa2c1ef73bb5f4c132eb0d4c4f634ec9a
4
+ data.tar.gz: 5223c1bd0cd8384803c526bff79e2cb305537427877b290f570d06b5c61db1f4
5
5
  SHA512:
6
- metadata.gz: 623f376df5c0f1546804476156f5e8a7b453096ab423b42721c1e8e7b889a1f884ef697afe71615362b9ee8943551775fe955e22b0d00d21bf840d21a418c22c
7
- data.tar.gz: faaf9f02e96c16a52d0e22359da11af4158f0c062147f1aa75a5f002b2530ea528552e351763b25255484ff1507b222f92b6cf7b780d2019aea2cb85b6bba3a0
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