Revert "fixed syntax bugs in migrations"

This reverts commit 5ce64e0e2da0036c91cfa77fbe6dfa144a11ddbf.
added .idea to .gitignore