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
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!
mysql 5.6.47
ruby 2.6.5p114
Rails 6.0.3.2
-
Answer # 1
Related articles
- ruby - unable to run rake db: create rails_env = production on aws deployment
- ruby - unable to create table with foreign key
- ruby - unable to create rails model (environment: cloud9)
- ruby - unable to deploy to heroku (nomethoderror)
- ruby - unable to deploy to heroku
- ruby - i want to reset the heroku database!
- ruby - i want to create a database on aws
- ruby on rails - unable to create controller
- ruby on rails - unable to start server in aws production environment
- ruby - i want to create a checkbox with the opposite meaning in the rails checkbox (for the same model, i want to create a check
- ruby - i want to resolve the heroku "we're sorry, but something went wrong" error
- ruby on rails - heroku run rails db: migrate an error occurs in heroku run rails db: migrate
- ruby - failed to deploy to heroku i would like to ask for your help (the cause is bundler ???)
- ruby on rails - unable to get latitude/longitude from user registration
- ruby - error when deploying on heroku
- ruby on rails - unable to access localhost with rails6 and docker
- database - create a program that reads a text file with a java program on the server side, saves the contents in a db, and retur
- ruby - i can't "rails db: create rails_env = production" on aws
- ruby - [rails] i want to create a page where the url does not change by redirect even if i enter a value and search like a site
Related questions
- ruby - i want to resolve the error runtimeerror in the production environment
- ruby - i want to avoid the mysql2 :: error: unknown table'likes' error that appears when deploying to heroku
- ruby - unable to deploy to heroku (nomethoderror)
- ruby - heroku run rails db: cannot migrate
- ruby - unable to deploy to heroku
- ruby - loaderror: cannot load such file --capybara/rspec occurs when executing bin/rspec
- ruby - about rails controller new action
- ruby - how to eliminate duplication using distinctpluck (: hoge)
- ruby - undefind method chart kick in rails production environment
- html - how to proceed with learning and development for ec construction
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.