File tree Expand file tree Collapse file tree 4 files changed +7
-34
lines changed
railties/test/application Expand file tree Collapse file tree 4 files changed +7
-34
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` Rails.application.config.active_record.suppress_multiple_database_warning ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Add ActiveRecord::Encryption::MessagePackMessageSerializer
2
6
3
7
Serialize data to the MessagePack format, for efficient storage in binary columns.
Original file line number Diff line number Diff line change @@ -413,20 +413,6 @@ def self.global_executor_concurrency # :nodoc:
413
413
singleton_class . attr_accessor :dump_schemas
414
414
self . dump_schemas = :schema_search_path
415
415
416
- def self . suppress_multiple_database_warning
417
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
418
- config.active_record.suppress_multiple_database_warning is deprecated and will be removed in Rails 7.2.
419
- It no longer has any effect and should be removed from the configuration file.
420
- MSG
421
- end
422
-
423
- def self . suppress_multiple_database_warning = ( value )
424
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
425
- config.active_record.suppress_multiple_database_warning= is deprecated and will be removed in Rails 7.2.
426
- It no longer has any effect and should be removed from the configuration file.
427
- MSG
428
- end
429
-
430
416
##
431
417
# :singleton-method: verify_foreign_keys_for_fixtures
432
418
# If true, Rails will verify all foreign keys in the database after loading fixtures.
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
105
105
106
106
### Removals
107
107
108
+ * Remove deprecated ` Rails.application.config.active_record.suppress_multiple_database_warning ` .
109
+
108
110
### Deprecations
109
111
110
112
### Notable changes
Original file line number Diff line number Diff line change @@ -2008,22 +2008,6 @@ def index
2008
2008
assert_not ActiveRecord . verbose_query_logs
2009
2009
end
2010
2010
2011
- test "config.active_record.suppress_multiple_database_warning getter is deprecated" do
2012
- app "development"
2013
-
2014
- assert_deprecated ( Rails . application . deprecators [ :active_record ] ) do
2015
- ActiveRecord . suppress_multiple_database_warning
2016
- end
2017
- end
2018
-
2019
- test "config.active_record.suppress_multiple_database_warning setter is deprecated" do
2020
- app "development"
2021
-
2022
- assert_deprecated ( Rails . application . deprecators [ :active_record ] ) do
2023
- ActiveRecord . suppress_multiple_database_warning = true
2024
- end
2025
- end
2026
-
2027
2011
test "config.active_record.use_yaml_unsafe_load is false by default" do
2028
2012
app "production"
2029
2013
assert_not ActiveRecord . use_yaml_unsafe_load
@@ -2385,16 +2369,13 @@ def index
2385
2369
assert_equal ( { } , Rails . application . config . load_database_yaml )
2386
2370
end
2387
2371
2388
- test "setup_initial_database_yaml does not print a warning if config.active_record.suppress_multiple_database_warning is true " do
2372
+ test "setup_initial_database_yaml does not print a warning" do
2389
2373
app_file "config/database.yml" , <<-YAML
2390
2374
<%= Rails.env %>:
2391
2375
username: bobby
2392
2376
adapter: sqlite3
2393
2377
database: 'dev_db'
2394
2378
YAML
2395
- add_to_config <<-RUBY
2396
- config.active_record.suppress_multiple_database_warning = true
2397
- RUBY
2398
2379
app "development"
2399
2380
2400
2381
assert_silent do
You can’t perform that action at this time.
0 commit comments