Skip to content

Instantly share code, notes, and snippets.

@SahSantoshh
Last active April 6, 2022 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SahSantoshh/fffbfbaa91f82b46ef8aa39922ee889e to your computer and use it in GitHub Desktop.
Save SahSantoshh/fffbfbaa91f82b46ef8aa39922ee889e to your computer and use it in GitHub Desktop.
LoadError: cannot load such file -- arel/visitors/mysql
If got following error while migrating rails app, which uses mysql-5.7,
```
rake aborted!
LoadError: cannot load such file -- arel/visitors/mysql
/home/santosh/Documents/Danfhe/kirus/config/application.rb:7:in `<top (required)>'
/home/santosh/Documents/Danfhe/kirus/Rakefile:4:in `require_relative'
/home/santosh/Documents/Danfhe/kirus/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
```
Solution:
- Uninstall ruby
- reinstall ruby
- if db is running then its fine if not, then run mysql 5.7 using docker https://gist.github.com/SahSantoshh/8ff41ce4dd57305358e98d43adff76b1
- hit bundle
- run rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment