1
resposta

Erro ao executar rails dbconsole

Olá,

Ao tentar rodar o rails dbconsole, estou tendo o erro abaixo. Já tentei reinstalar o sqlite3 por diversas vezes, e não consegui. Alguém tem uma luz?

MINGW64 /c/loja (master)
$ rails dbconsole
[WARNING] Could not load command "rails/commands/dbconsole/dbconsole_command". Error: undefined method `deprecate' for Rails::DBConsole:Class.
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/commands/dbconsole/dbconsole_command.rb:95:in `<class:DBConsole>'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/commands/dbconsole/dbconsole_command.rb:7:in `<module:Rails>'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/commands/dbconsole/dbconsole_command.rb:6:in `<main>'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:332:in `require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command/behavior.rb:44:in `block (2 levels) in lookup'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command/behavior.rb:40:in `each'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command/behavior.rb:40:in `block in lookup'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command/behavior.rb:39:in `each'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command/behavior.rb:39:in `lookup'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command.rb:76:in `find_by_namespace'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/command.rb:48:in `invoke'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.1.0.rc1/lib/rails/commands.rb:18:in `<main>'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bootsnap-1.5.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:332:in `block in require'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:299:in `load_dependency'
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/activesupport-6.1.0.rc1/lib/active_support/dependencies.rb:332:in `require'
bin/rails:4:in `<main>'
rails aborted!
Don't know how to build task 'dbconsole' (See the list of available tasks with `rails --tasks`)

(See full trace by running task with --trace)
1 resposta

Fala Pedro, como vai?

Pode compartilhar por gentileza seu arquivo gemfile? Assim podemos te dar um feedback direcionado.