All threads / The Rails db:system:change command Discussion
Ask A Question

Notifications

You’re not receiving notifications from this thread.

The Rails db:system:change command Discussion

Great to change the database when we create default sqlite.
that maintains the previous gem version ... generates confusion when looking for errors.

Reply
Reply

This is such a nice little feature where I just want to get running with SQLite and change DBs when applicable

Reply

I get this:
Running via Spring preloader in process 48851
invalid option: --to=postgresql

What could be the issue? I am using Rails 6.1.4.1

me, too. I've got same problem.
I think this command(db:system:change) keep finding rake command, not rails.
I am using Rails 6.1.4.4, Rake 13.0.6, Ruby 3.0.3

I am stuck with this (under part 38 of the beginner series too), same issue

I have same issue, did you find a solution?

The workaround is to disable 'spring' as follows.

1: comment out gem 'spring' in the Gemfile
2: execute "bundle install"

Details are on GitHub issue (rails/spring #678).
I will fix the issue.

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 66,029+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.