# Global preConditions with grails plugin?

**URL:** <https://forum.liquibase.org/t/global-preconditions-with-grails-plugin/8467>\
**Category:** General Discussion\
**Created:** [July 26, 2023, 7:15pm UTC](https://forum.liquibase.org/t/global-preconditions-with-grails-plugin/8467 "2023-07-26T19:15:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbandler](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@paulbandler](https://forum.liquibase.org/u/paulbandler)\
**Post date:** [July 26, 2023, 7:15pm UTC](https://forum.liquibase.org/t/global-preconditions-with-grails-plugin/8467/1 "2023-07-26T19:15:27Z")

</div>

I am using the grails liquibase plugin. Is it possible to have a preCondition that applies to all changesets in a particular file (databaseChangeLog closure?). I have tried placing a ‘preConditions’ in the higher level file that includes the target one, and also within the target one that contains all the changeSets to be ‘guarded’ by the precondition, but in both cases I get:

> liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: org.grails.plugins.databasemigration.DatabaseMigrationException: Unknown method name: preConditions  
> at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)  
> at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:408)
