tute/merit — pull request #17 by MarkBorcherding (2012-07-27 21:02:15+00:00)
Title: Generate base tables on install

I'm not sure if it's intended to work this way, but we want to be able to merit multiple different models. The generators would not let me run:

rails g merit user
rails g merit post

Since the `merit` generator was also creating the core tables, it wouldn't run a second time. I moved those core migrations to the `merit:install` and left only the model specific stuff in `merit`.

I don't know if it was intended to be able to merit multiple different models, but the generators were a road bock for even trying.

There is probably a slicker way to generate the files _only_ if the previous migrations weren't found, but this solution worked well enough for me.