diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/model_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/model_generator.rb b/railties/lib/rails_generator/generators/components/model/model_generator.rb index 0940b57f73..e242482632 100644 --- a/railties/lib/rails_generator/generators/components/model/model_generator.rb +++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb @@ -29,6 +29,6 @@ class ModelGenerator < Rails::Generator::NamedBase opt.separator '' opt.separator 'Options:' opt.on("--skip-migration", - "Don't generate a migration file for this model") { |options[:skip_migration]| } + "Don't generate a migration file for this model") { |v| options[:skip_migration] = v } end end |