Liquibase Migration Runner
Dependency :
compile ":liquibase-runner:1.2"
Summary
Description
Runs liquibase migrations automatically when the server starts. This plugin requires the Liquibase plugin http://www.grails.org/plugin/liquibaseInstall:
grails install-plugin liquibase-runnerDefine your migrations as you normally would using the Liquibase plugin. To get the liquibase-runner plugin to automatically run those migrations upon application startup, simply define the location of the changelog you would like to run in Config.groovy. You can also specify whether migrations are 'enabled' (i.e. should be run automatically or not). These config settings are environment aware, so you can disable migrations in the test environment, for instance.
migrations.enabled = true migrations.changelogs = ['migrationschangelog.xml']// set per-environment serverURL stem for creating absolute links environments { test { migrations.enabled = false } }