Skip to content
Snippets Groups Projects
Commit 33273e51 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add method to execute migration

parent 7423e576
No related branches found
No related tags found
No related merge requests found
Meteor.methods
migrate: (version) ->
user = Meteor.user()
if not user? or user.admin isnt true
return
this.ublock()
Migrations.migrateTo version
return version
getMigrationVersion: ->
return Migrations.getVersion()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment