Define and run basic migrations
masterTo create a migration, use Migrations.add() within your server-side code. To execute migrations, call Migrations.migrateTo() inside Meteor.startup().
Note: It is recommended to run migrations within Meteor.startup to ensure log output is configured correctly.
// Define a migration
Migrations.add({
version: 1,
up: function() {//code to migrate up to version 1}
});
// Run the migration
Meteor.startup(() => {
Migrations.migrateTo('latest');
});