Fixed reference errors, enabled migrations
Configured migrations