Lustra::Migration::Manager
Inherits Lustra::ErrorMessages < Reference < Object
The migration manager is a singleton, it load all the migrations,
check which one are up and down, and can trigger one or multiple
downgrade / upgrade of the database.
The migration system needs the creation of a table named __lustra_metadatas
in your database. This table will be created automatically on the first
initialization of the Migration Manager.
Constants
Used to migrate between metadata version, in case we need it in the future.
Class methods
Instance methods
Return true if the migration has been commited (already applied into the database)
or false otherwise
Force down a migration; throw error if the mgiration is already down
Force reloading the migration system Recheck all the current up migrations and the metadata table. This is useful if you access to the migration process through another program, or during specs