Irreversible Migration

What happens when you throw an exception in the case of an
irreversible migration? Will it stop when the exception is thrown or
will it continue to apply migrations if it has to reach the specified
version? TIA.

On 10/15/06, Bala P. [email protected] wrote:

What happens when you throw an exception in the case of an
irreversible migration? Will it stop when the exception is thrown or
will it continue to apply migrations if it has to reach the specified
version? TIA.

Are you talking about migrating up or down?

If you’re going up, IrreversibleMigrations don’t really matter.

If you’re going down, the migrator will stop when it encounters an
IrreversibleMigration exception.

-ryan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs