ReferenceError: Collection is not defined
isAlmogK opened this issue · 1 comments
isAlmogK commented
I'm getting a ReferenceError: Collection is not defined no idea what's casing the error
Migrations.add({
version: 1,
name: 'Adds email slug to topics in the db.',
//code to migrate up to version 0.1
up: function() {
Topics.update({}, {$setOnInsert:{emailSlug:""}}, {multi:true});
},
//code to migrate down to version 0
down: function() {
}
});
isAlmogK commented
Fixed I had my migrations.js file in a folder inside the server folder
/server/mirgrations/migrations.js
once I moved the file to just the ever everything worked.