rails上的-s标志生成模型

时间:2012-02-01 22:57:25

标签: ruby-on-rails

我遇到了一个具有以下语法的教程:

rails generate model User name:string -s

-s是什么?

由于

1 个答案:

答案 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