Fix migration format
Only allow delete resource if user is the creator. Fix #54