@@ -11,7 +11,7 @@ Upgrading to Rails 8.0
11
11
----------------------
12
12
13
13
If you're upgrading an existing application, it's a great idea to have good test
14
- coverage before going in. You should also first upgrade to Rails 7.1 in case you
14
+ coverage before going in. You should also first upgrade to Rails 7.2 in case you
15
15
haven't and make sure your application still runs as expected before attempting
16
16
an update to Rails 8.0. A list of things to watch out for when upgrading is
17
17
available in the
@@ -28,14 +28,6 @@ Please refer to the [Changelog][railties] for detailed changes.
28
28
29
29
### Removals
30
30
31
- * Remove deprecated ` Rails::Generators::Testing::Behaviour ` .
32
-
33
- * Remove deprecated ` Rails.application.secrets ` .
34
-
35
- * Remove deprecated ` Rails.config.enable_dependency_loading ` .
36
-
37
- * Remove deprecated ` find_cmd_and_exec ` console helper.
38
-
39
31
### Deprecations
40
32
41
33
### Notable changes
@@ -58,22 +50,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
58
50
59
51
### Removals
60
52
61
- * Remove deprecated constant ` ActionDispatch::IllegalStateError ` .
62
-
63
- * Remove deprecated constant ` AbstractController::Helpers::MissingHelperError ` .
64
-
65
- * Remove deprecated comparison between ` ActionController::Parameters ` and ` Hash ` .
66
-
67
- * Remove deprecated ` Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type ` .
68
-
69
- * Remove deprecated ` speaker ` , ` vibrate ` , and ` vr ` permissions policy directives.
70
-
71
- * Remove deprecated support to set ` Rails.application.config.action_dispatch.show_exceptions ` to ` true ` and ` false ` .
72
-
73
53
### Deprecations
74
54
75
- * Deprecate ` Rails.application.config.action_controller.allow_deprecated_parameters_hash_equality ` .
76
-
77
55
### Notable changes
78
56
79
57
Action View
@@ -83,12 +61,8 @@ Please refer to the [Changelog][action-view] for detailed changes.
83
61
84
62
### Removals
85
63
86
- * Remove deprecated ` @rails/ujs ` in favor of ` Turbo ` .
87
-
88
64
### Deprecations
89
65
90
- * Deprecate passing content to void elements when using ` tag.br ` type tag builders.
91
-
92
66
### Notable changes
93
67
94
68
Action Mailer
@@ -98,10 +72,6 @@ Please refer to the [Changelog][action-mailer] for detailed changes.
98
72
99
73
### Removals
100
74
101
- * Remove deprecated ` config.action_mailer.preview_path ` .
102
-
103
- * Remove deprecated params via ` :args ` for ` assert_enqueued_email_with ` .
104
-
105
75
### Deprecations
106
76
107
77
### Notable changes
@@ -113,73 +83,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
113
83
114
84
### Removals
115
85
116
- * Remove deprecated ` Rails.application.config.active_record.suppress_multiple_database_warning ` .
117
-
118
- * Remove deprecated support to call ` alias_attribute ` with non-existent attribute names.
119
-
120
- * Remove deprecated ` name ` argument from ` ActiveRecord::Base.remove_connection ` .
121
-
122
- * Remove deprecated ` ActiveRecord::Base.clear_active_connections! ` .
123
-
124
- * Remove deprecated ` ActiveRecord::Base.clear_reloadable_connections! ` .
125
-
126
- * Remove deprecated ` ActiveRecord::Base.clear_all_connections! ` .
127
-
128
- * Remove deprecated ` ActiveRecord::Base.flush_idle_connections! ` .
129
-
130
- * Remove deprecated ` ActiveRecord::ActiveJobRequiredError ` .
131
-
132
- * Remove deprecated support to define ` explain ` in the connection adapter with 2 arguments.
133
-
134
- * Remove deprecated ` ActiveRecord::LogSubscriber.runtime ` method.
135
-
136
- * Remove deprecated ` ActiveRecord::LogSubscriber.runtime= ` method.
137
-
138
- * Remove deprecated ` ActiveRecord::LogSubscriber.reset_runtime ` method.
139
-
140
- * Remove deprecated ` ActiveRecord::Migration.check_pending ` method.
141
-
142
- * Remove deprecated support to passing ` SchemaMigration ` and ` InternalMetadata ` classes as arguments to
143
- ` ActiveRecord::MigrationContext ` .
144
-
145
- * Remove deprecated behavior to support referring to a singular association by its plural name.
146
-
147
- * Remove deprecated ` TestFixtures.fixture_path ` .
148
-
149
- * Remove deprecated support to ` ActiveRecord::Base#read_attribute(:id) ` to return the custom primary key value.
150
-
151
- * Remove deprecated support to passing coder and class as second argument to ` serialize ` .
152
-
153
- * Remove deprecated ` #all_foreign_keys_valid? ` from database adapters.
154
-
155
- * Remove deprecated ` ActiveRecord::ConnectionAdapters::SchemaCache.load_from ` .
156
-
157
- * Remove deprecated ` ActiveRecord::ConnectionAdapters::SchemaCache#data_sources ` .
158
-
159
- * Remove deprecated ` #all_connection_pools ` .
160
-
161
- * Remove deprecated support to apply ` #connection_pool_list ` , ` #active_connections? ` , ` #clear_active_connections! ` ,
162
- ` #clear_reloadable_connections! ` , ` #clear_all_connections! ` and ` #flush_idle_connections! ` to the connections pools
163
- for the current role when the ` role ` argument isn't provided.
164
-
165
- * Remove deprecated ` ActiveRecord::ConnectionAdapters::ConnectionPool#connection_klass ` .
166
-
167
- * Remove deprecated ` #quote_bound_value ` .
168
-
169
- * Remove deprecated support to quote ` ActiveSupport::Duration ` .
170
-
171
- * Remove deprecated support to pass ` deferrable: true ` to ` add_foreign_key ` .
172
-
173
- * Remove deprecated support to pass ` rewhere ` to ` ActiveRecord::Relation#merge ` .
174
-
175
- * Remove deprecated behavior that would rollback a transaction block when exited using ` return ` , ` break ` or ` throw ` .
176
-
177
86
### Deprecations
178
87
179
- * Deprecate ` Rails.application.config.active_record.allow_deprecated_singular_associations_name `
180
-
181
- * Deprecate ` Rails.application.config.active_record.commit_transaction_on_non_local_return `
182
-
183
88
### Notable changes
184
89
185
90
Active Storage
@@ -189,10 +94,6 @@ Please refer to the [Changelog][active-storage] for detailed changes.
189
94
190
95
### Removals
191
96
192
- * Remove deprecated ` config.active_storage.replace_on_assign_to_many ` .
193
-
194
- * Remove deprecated ` config.active_storage.silence_invalid_content_types_warning ` .
195
-
196
97
### Deprecations
197
98
198
99
### Notable changes
@@ -215,49 +116,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
215
116
216
117
### Removals
217
118
218
- * Remove deprecated ` ActiveSupport::Notifications::Event#children ` and ` ActiveSupport::Notifications::Event#parent_of? ` .
219
-
220
- * Remove deprecated support to call the following methods without passing a deprecator:
221
-
222
- - ` deprecate `
223
- - ` deprecate_constant `
224
- - ` ActiveSupport::Deprecation::DeprecatedObjectProxy.new `
225
- - ` ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new `
226
- - ` ActiveSupport::Deprecation::DeprecatedConstantProxy.new `
227
- - ` assert_deprecated `
228
- - ` assert_not_deprecated `
229
- - ` collect_deprecations `
230
-
231
- * Remove deprecated ` ActiveSupport::Deprecation ` delegation to instance.
232
-
233
- * Remove deprecated ` SafeBuffer#clone_empty ` .
234
-
235
- * Remove deprecated ` #to_default_s ` from ` Array ` , ` Date ` , ` DateTime ` and ` Time ` .
236
-
237
- * Remove deprecated ` :pool_size ` and ` :pool_timeout ` options for the cache storage.
238
-
239
- * Remove deprecated support for ` config.active_support.cache_format_version = 6.1 ` .
240
-
241
- * Remove deprecated constants ` ActiveSupport::LogSubscriber::CLEAR ` and ` ActiveSupport::LogSubscriber::BOLD ` .
242
-
243
- * Remove deprecated support to bolding log text with positional boolean in ` ActiveSupport::LogSubscriber#color ` .
244
-
245
- * Remove deprecated ` config.active_support.disable_to_s_conversion ` .
246
-
247
- * Remove deprecated ` config.active_support.remove_deprecated_time_with_zone_name ` .
248
-
249
- * Remove deprecated ` config.active_support.use_rfc4122_namespaced_uuids ` .
250
-
251
- * Remove deprecated support to passing ` Dalli::Client ` instances to ` MemCacheStore ` .
252
-
253
- * Remove deprecated support for the pre-Ruby 2.4 behavior of ` to_time ` returning a ` Time ` object with local timezone.
254
-
255
119
### Deprecations
256
120
257
- * Deprecate ` config.active_support.to_time_preserves_timezone ` .
258
-
259
- * Deprecate ` DateAndTime::Compatibility.preserve_timezone ` .
260
-
261
121
### Notable changes
262
122
263
123
Active Job
@@ -267,16 +127,8 @@ Please refer to the [Changelog][active-job] for detailed changes.
267
127
268
128
### Removals
269
129
270
- * Remove deprecated primitive serializer for ` BigDecimal ` arguments.
271
-
272
- * Remove deprecated support to set numeric values to ` scheduled_at ` attribute.
273
-
274
- * Remove deprecated ` :exponentially_longer ` value for the ` :wait ` in ` retry_on ` .
275
-
276
130
### Deprecations
277
131
278
- * Deprecate ` Rails.application.config.active_job.use_big_decimal_serialize ` .
279
-
280
132
### Notable changes
281
133
282
134
Action Text
0 commit comments