skip-migration option for scaffold, resource generator

Hello!

I often write my own migration generators to handle custom SQL. The --skip-migration option for the model generator is very handy for these situations, but I miss this option for the scaffold and resource generators.

I've posted a patch[1] that adds --skip-migration to the scaffold and resource generators with tests—with a new rails_resource_generator_test.rb file thrown in for good measure :slight_smile:

This is one of my first patches for Rails and welcome any feedback. If there's anything I can do to make this patch more likely to be accepted, please let me know.

Cheers,

Michael Glaesemann
grzm seespotcode net

[1](http://dev.rubyonrails.org/ticket/8656)

I've noticed that josh updated the ticket to include [PATCH] in the summary, but I haven't seen any other activity on this patch. As far as I know, there's no way to make this change via monkey-patching[2], which would help as a clean workaround while this patch is unapplied. If there's anything I can do to move this patch forward, please let me know!

Cheers,

Michael Glaesemann
grzm seespotcode net

[2](http://thread.gmane.org/gmane.comp.lang.ruby.rails/141559/)

> This is one of my first patches for Rails and welcome any feedback.
> If there's anything I can do to make this patch more likely to be
> accepted, please let me know.

Applied. Thanks!

No problem! Thanks for applying!

Michael Glaesemann
grzm seespotcode net