我遇到了一个具有以下语法的教程:
rails generate model User name:string -s
-s
是什么?
由于
答案 0 :(得分:0)
输入rails generate model --help
会为您提供所需的答案:
Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Supress status output
-s, [--skip] # Skip files that already exist
在最后一部分,您会看到:
Skip files that already exist