I am also running IntelliJ 11.1.3. I am working with Grails 2.1 and database-migration:1.1 .
The database migration plugin is used to create Groovy change lists that can be used to migrate the database at point X over time to be compatible with the new code changes you have made to your Grails application.
For example, if your Grails application is in production today, with your domain classes, tables, etc., and you run grails dbm-create-changelog changelog.groovy , this will give you a basic replacement for the changelog.groovy script. Then you should run grails dbm-changelog-sync to indicate that you are updated.
Let's say that you added new domain classes and changed fields to existing ones. If you saved your changes and ran grails dbm-update , the Database Migration plugin will update your database schema based on these change sets.
Here is a great tutorial (not mine) that I read / follow to learn more about the database migration plugin: Tutorial on connecting Grails DB-Migration modules
source share