Rahul Ahuja
Rahul Ahuja

Reputation: 35

Rails looking for MySQL instead of Postgres after MYSql installation

I was using postgresql with rails. I installed mysql yesterday for some side project and today when I ran rails c, It gave the following error,

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)

I have not changed anything in my rails project. My rails application still uses 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

Upvotes: 1

Views: 685

Answers (1)

2cats2furious
2cats2furious

Reputation: 31

Hello just remove the gem 'arel'

gem uninstall arel

and run

bundle install

Upvotes: 3

Related Questions