I’m playing around with engines, and want to see if I can get
migrations working with them. According to rake --tasks, the migrate
task will “migrate the database according to the migrate scripts in
db/migrate (only supported on PG/MySQL).” I assumed it would just
look in the current dir for db/migrate, but it doesn’t seem to be.
Here’s the layout of my app:
if I cd to vendor/plugins/myengine and run “rake migrate”, it ignores
the files in ./db/migrate. However if I copy them up to
myproject/db/migrate, it finds them fine. So my first question is how
does rake know to use RAILS_ROOT to begin with? I don’t see any
reason why it wouldn’t act in the current directory. Second, how do I
get it to run migrate on the migrations beneath the current directory?