Rails g migration doesn't work

前端 未结 3 2096
挽巷
挽巷 2020-12-20 03:21

When I run the command

rails g migration migration_name

I will get the \"error\" message:

Usage:
  rails new APP         


        
3条回答
  •  既然无缘
    2020-12-20 04:02

    I've got the same, and i fixed by doing :

    cd /root/path/to/your/project
    
    bundle install
    
    bundle update
    

    Voilà :)

提交回复
热议问题