activerecord 7.0.8.7 → 7.0.10

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: 587097236b4ca27236683eee31a484d393e01ac9100ac2fbf8f2e0969fa9548c
4
+ data.tar.gz: bbcdd829bf66d974987e458d9ebbf34a2fc27b068e52a7cde143a2264cbcd008
5
5
  SHA512:
6
- metadata.gz: 623f376df5c0f1546804476156f5e8a7b453096ab423b42721c1e8e7b889a1f884ef697afe71615362b9ee8943551775fe955e22b0d00d21bf840d21a418c22c
7
- data.tar.gz: faaf9f02e96c16a52d0e22359da11af4158f0c062147f1aa75a5f002b2530ea528552e351763b25255484ff1507b222f92b6cf7b780d2019aea2cb85b6bba3a0
6
+ metadata.gz: 3a326f31032e008ca4025f7dde49bd80d116b4a5749b0704d1b0aa5349db34b978ae0bc9e641a0d6cccd2ef59b14f9261f3240f5876ef6ce31d2dae0b49afbe5
7
+ data.tar.gz: 214fa11efba65990f7271e5e9d03c68b99a67139ef17ab7ec73673b11d2d2bb3a965f0d3626420064b295f59faa69822bb990f99a3e6faf6763f9d4fb1ccf087
data/CHANGELOG.md CHANGED
@@ -1,3 +1,93 @@
1
+ ## Rails 7.0.10 (October 28, 2025) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.0.9 (October 28, 2025) ##
7
+
8
+ * Fix an issue that could cause database connection leaks
9
+
10
+ If Active Record successfully connected to the database, but then failed
11
+ to read the server informations, the connection would be leaked until the
12
+ Ruby garbage collector triggers.
13
+
14
+ *Jean Boussier*
15
+
16
+ * Fix single quote escapes on default generated MySQL columns
17
+
18
+ MySQL 5.7.5+ supports generated columns, which can be used to create a column that is computed from an expression.
19
+
20
+ Previously, the schema dump would output a string with double escapes for generated columns with single quotes in the default expression.
21
+
22
+ This would result in issues when importing the schema on a fresh instance of a MySQL database.
23
+
24
+ Now, the string will not be escaped and will be valid Ruby upon importing of the schema.
25
+
26
+ *Yash Kapadia*
27
+
28
+ * Fix `Relation#transaction` to not apply a default scope
29
+
30
+ The method was incorrectly setting a default scope around its block:
31
+
32
+ ```ruby
33
+ Post.where(published: true).transaction do
34
+ Post.count # SELECT COUNT(*) FROM posts WHERE published = FALSE;
35
+ end
36
+ ```
37
+
38
+ *Jean Boussier*
39
+
40
+ * Fix renaming primary key index when renaming a table with a UUID primary key
41
+ in PostgreSQL.
42
+
43
+ *fatkodima*
44
+
45
+ * Fix `where(field: values)` queries when `field` is a serialized attribute
46
+ (for example, when `field` uses `ActiveRecord::Base.serialize` or is a JSON
47
+ column).
48
+
49
+ *João Alves*
50
+
51
+ * Don't mark Float::INFINITY as changed when reassigning it
52
+
53
+ When saving a record with a float infinite value, it shouldn't mark as changed
54
+
55
+ *Maicol Bentancor*
56
+
57
+ * `ActiveRecord::Base.table_name` now returns `nil` instead of raising
58
+ "undefined method `abstract_class?` for Object:Class".
59
+
60
+ *a5-stable*
61
+
62
+ * Fix upserting for custom `:on_duplicate` and `:unique_by` consisting of all
63
+ inserts keys.
64
+
65
+ *fatkodima*
66
+
67
+ * Fix `NoMethodError` when casting a PostgreSQL `money` value that uses a
68
+ comma as its radix point and has no leading currency symbol. For example,
69
+ when casting `"3,50"`.
70
+
71
+ *Andreas Reischuck* and *Jonathan Hefner*
72
+
73
+ * Fix duplicate quoting for check constraint expressions in schema dump when using MySQL
74
+
75
+ A check constraint with an expression, that already contains quotes, lead to an invalid schema
76
+ dump with the mysql2 adapter.
77
+
78
+ Fixes #42424.
79
+
80
+ *Felix Tscheulin*
81
+
82
+ * Fix MySQL expression index dumping with escaped quotes.
83
+
84
+ *fatkodima*
85
+
86
+ * Fix uniqueness validation on association not using overridden primary key.
87
+
88
+ *fatkodima*
89
+
90
+
1
91
  ## Rails 7.0.8.7 (December 10, 2024) ##
2
92
 
3
93
  * No changes.
@@ -883,6 +973,7 @@
883
973
  # Rails 7.0 (same behavior with IN clause, mergee side condition is consistently replaced)
884
974
  Author.where(id: [david.id, mary.id]).merge(Author.where(id: bob)) # => [bob]
885
975
  Author.where(id: david.id..mary.id).merge(Author.where(id: bob)) # => [bob]
976
+ ```
886
977
 
887
978
  *Rafael Mendonça França*
888
979
 
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