Rails g migration goes new line and does nothing

401 views Asked by At
$ rails generate migration add_password_digest_to_users password_digest:string

Have to add password_digest to user but rails generate comand doesn't work. It just pretending to work but seems like it will lasts forever. No errors or backtrace were returned, just new line.

1

There are 1 answers

0
tomcat1911 On BEST ANSWER

It is spring problem. This problem appears due to interrupting $ rails generate command.

To solve it you should stop all spring processes:

$ spring stop

And then:

$ rails generate

You can find more details here https://github.com/rails/rails/issues/13381