Commit 57b27b1
committed
Support rails 7.2
rails/rails@e0a55b0
While we do not leverage the `attribute` api, we are strongly influenced by it.
We do not want a default value record, which modifies select(*) calls and others.
We want to add the values to `attribute_type`.
Before
------
The values are stored in `attributes_to_define_after_schema_loads` at class load time,
and in load_schema, are then used to generate entries for `DefaultValue` and `attribute_type`.
After
-----
The values are stored as `ModifyAttribute` entries.
Those values then are used to populate default values and attribute_type on demand.
Our Change
----------
Previous PRs removed arel and uses logic so load_schema only manipulated attribute_type.
Like the rails change, we populate (modify) attribute_type on demand.1 parent 23ad9ad commit 57b27b1
File tree
3 files changed
+8
-12
lines changed- lib/active_record
3 files changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
100 | 97 | | |
101 | 98 | | |
102 | 99 | | |
| |||
0 commit comments