Last active
April 6, 2022 07:48
-
-
Save SahSantoshh/fffbfbaa91f82b46ef8aa39922ee889e to your computer and use it in GitHub Desktop.
LoadError: cannot load such file -- arel/visitors/mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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