Rails g migration doesn't work

前端 未结 3 2101
挽巷
挽巷 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 03:51

    You are not running it inside a rails generated project directory. You are running it outside it.

    EDIT: It could also be if the script folder is missing. Or the rails script is missing inside the script folder if you are executing it inside the project folder.

提交回复
热议问题