我正在使用带有rails的postgresql。昨天我为某个副项目安装了mysql,今天我运行rails c
时,它出现了以下错误,
home/rahul/.rvm/gems/ruby-2.6.0/gems/arel-9.0.0/lib/arel/visitors.rb:7:in require': cannot load such file -- arel/visitors/mysql (LoadError)
我没有更改Rails项目中的任何内容。我的Rails应用程序仍然使用Postgres
database.yml
default: &default
adapter: postgresql
pool: 50
timeout: 5000
# host: localhost
encoding: utf8
development:
<<: *default
database: enquiry_dispatch_development
test:
<<: *default
database: enquiry_dispatch_test
答案 0 :(得分:0)
您好,只需删除宝石“ arel”
gem uninstall arel
然后运行
bundle install