In which file in Rails do I need to place code that I want executed for example when the user types
rails g migration doSomethingFancy
My intention is to keep track of these commands in a sort-of log file. I noticed this relevant question, but it seems this method has been deprecated in Rails3 (creating a generate file doesn’t work). Do you know of any way to achieve a similar result in Rails3?
Well, you could certainly do something similar by editing the
railsscript file.