But when I run the command, rails db:system:change --to=postgresql it says that
rails db:system:change --to=postgresql
Running via Spring preloader in process 15186 invalid option: --to=postgresql
my env:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux] Rails 6.1.4.1
Strange here it worked, tested other databases?
Mysql is the same result.
The workaround is to disable 'spring' as follows.
gem 'spring'
Details are below issue. github.com/rails/rails/issues/3471...
I fixed this issue by the following PR. github.com/rails/spring/pull/679
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But when I run the command,
rails db:system:change --to=postgresql
it says that
Running via Spring preloader in process 15186
invalid option: --to=postgresql
my env:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
Rails 6.1.4.1
Strange here it worked, tested other databases?
Mysql is the same result.
The workaround is to disable 'spring' as follows.
gem 'spring'
in the GemfileDetails are below issue.
github.com/rails/rails/issues/3471...
I fixed this issue by the following PR.
github.com/rails/spring/pull/679