struct

DynFork::Migration::Monitor

Inherits Struct < Value < Object

Monitoring and updating database state for application.

Constructors

new(database_name : String)
Source

Instance methods

migrat

Run migration process:

  1. Update the state of Models in the super collection.

2) Add models states to the super collection if missing.
3) Check the changes in the models and (if necessary) apply to the database.
4) Delete data for non-existent Models from a super collection and delete collections associated with those Models.
Source