Specify Rails version for Rage db:migrate

Hi all,

I have a problem while trying to migrate using Rake.
I have two versions of Rails on the server and want to specify the one
(the older in this case) to be used by rake.

I tried

rake migrate RAILS_GEM_VERSION=1.1.6

but this doesn't work.
Anyone has an idea?

Regards,

Thomas