I have a line of code in environment.rb that cannot be run during a
rake db:migrate, as it depends on some tables being present.
I need to find a way to enclose this line in a check for db:migrate. I
know how to check if we're in a rake task with:
# do stuff, but skip when run from rake tasks
How can I take this further to make check if I'm running the rake