Migrations

Space Kitty comes with an easy way to generate migrations! It will create automatically timestamped migrations so that they will, by default, run in the order that you created them!

Command

kitty make:migration MyNamespace MigrationName

Output

Created file: server/migrations/MyNamespace/1452482881380-migration-name.js

/**
 * MyNamespace MigrationName Migration
 */
Migrations.add({
  version: 1452482881380,
  name: 'MyNamespace MigrationName',
  up: function () {
    //
  },
  down: function () {
    //
  }
});

 

Previous: Making Collections

Next: Making Meteor Methods