apply rails_path variable to migrations