preston / railroady

Ruby on Rails 3/4/5 model and controller UML class diagram generator. (`brew/port/apt-get install graphviz` before use!)
Other
1.71k stars 142 forks source link

run rake diagram after each migration (db:migrate) #125

Closed tuxtux59 closed 6 years ago

tuxtux59 commented 6 years ago

Hi,

I'm wondering if some code exists to run rake diagram:all after each rake db:migrateso that models and controllers are always up to date?

Thanks

preston commented 6 years ago

@tuxtux59 rake has its own ways of hooking or chaining things together. See: https://stackoverflow.com/questions/1689504/how-do-i-make-a-rake-task-run-after-all-other-tasks-i-e-a-rake-afterbuild-tas