我之前的错误rails generate
,(我忘记添加内容字符串等)然后我更正了它,并添加了正确的细节,现在我需要推动新的更改。我需要使用什么命令才能使用--force
?
Another migration is already named create_statuses: //Documents/rails_projects/treebook/db/migrate/20130803211355_create_statuses.rb. Use --force to remove the old migration file and replace it.
$ --force rails generate scaffold status name:string content:text
-bash: --force: command not found
$ rails --force generate scaffold status name:string content:text
Error: Command '--force' not recognized
Usage: rails COMMAND [ARGS]