Home>

This is my first question, I'm quite a beginner
Thank you! ...

I reset the database of the application that was once completed.
When I try to migrate again, I get the following error message

Error message
DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport :: LoggerSilence` instead (called from<main>at /app/config/application.rb: 7)
   (1.8ms) SET NAMES utf8, @@ SESSION.sql_mode = CONCAT (CONCAT (@@ sql_mode,', STRICT_ALL_TABLES'),', NO_AUTO_VALUE_ON_ZERO'), @@ SESSION.sql_auto_is_null = 0, @@ SESSION.wait_timeout = 2147483
   (2.4ms) SET NAMES utf8, @@ SESSION.sql_mode = CONCAT (CONCAT (@@ sql_mode,', STRICT_ALL_TABLES'),', NO_AUTO_VALUE_ON_ZERO'), @@ SESSION.sql_auto_is_null = 0, @@ SESSION.wait_timeout = 2147483
   (2.3ms) SELECT GET_LOCK ('7853752416679587705', 0)
   (1.5ms) SELECT `schema_migrations` .`version` FROM `schema_migrations` ORDER BY` schema_migrations` .`version` ASC
Migrating to CreateActiveStorageTables (20200825032335)
== 20200825032335 CreateActiveStorageTables: migrating ========================
--create_table (: active_storage_blobs, {})
   (1.5ms) SELECT @@ innodb_file_per_table = 1 AND @@ innodb_file_format ='Barracuda'
   (2.3ms) SELECT RELEASE_LOCK ('7853752416679587705')
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
Tasks: TOP =>db: migrate
(See full trace by running task with --trace)
What I tried

I referred to this article because there was a person with the same problem.
Link

DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1.


I understand that this message is a warning message that the module (LoggerSilence) used for log output will not be available from the next version, so please use ActiveSupport :: LoggerSilence instead.
then
Link
With reference to
You can install Rails 6.0.0.rc1
Refer to the description in app/controllers/application_controller.rb

class ApplicationController

I rewrote it, but it didn't work.

I would like to borrow your help ...!
Thank you!

Supplementary information (FW/tool version, etc.)

mysql 5.6.47
ruby 2.6.5p114
Rails 6.0.3.2

  • Answer # 1

    Thank you for browsing!
    I solved it myself.
    DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1.
    This error text was just a warning text as described in the question text, and the error occurred separately.
    I haven't solved the problem yet, so I'll ask another question!
    Thank you very much.