class Marten::DB::Management::Migrations::Recorder
- Marten::DB::Management::Migrations::Recorder
- Reference
- Object
Overview
The migration recorder class.
The migration recorder is responsible for recording the fact that specific migrations where applied to the DB.
It does so by creating a "migration record" for each of the applied migration that is persisted in the
marten_migrations
table of the current database. The whole migration mechanism relies on the recorder in
order to know which migrations where previously applied for each installed application.
Defined in:
marten/db/management/migrations/recorder.crConstructors
Instance Method Summary
- #applied_migrations
- #record(app_label : String, name : String)
- #record(migration : Migration)
- #setup : Nil
- #unrecord(app_label : String, name : String)
- #unrecord(migration : Migration)