ruby-on-railsrails-migrationsrails-generate

Rails g migration goes new line and does nothing


$ 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.


Solution

  • 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