migration flag

Is there anything wrong with creating an application wide flag to signify when code is migrating?

How can I detect if a the environment is currently in migrating mode. Does anyone have some methods for this?

Hi Aryk,

Aryk Grosz wrote:

Is there anything wrong with creating an application wide flag to signify when code is migrating?

I'm not sure what you mean by 'when code is migrating'. Do you mean something like 'when a migration is in process'? Say a little more about the problem you're trying to solve and we might be able to help.

Best regards, Bill

Yeah, sorry about that.

I meant when an "rake db:migrate" is taking place.

Bill Walton wrote: