Question: Spring Boot's FlywayProperties.java supports many of the Flyway settings but not 'baselineVersion' or 'baselineOnMigrate'. I am converting an existing application to Flyway and these setting appear to be designed for this purpose. Our production environment is highly controlled and running a commandline version of flyway there to achieve this is not practical.

Is creating a custom Flyway @Bean the only option here?

Answer: 
I am using flyway `5.1.4`, for me adding these in `application.properties` worked
`flyway.enabled = true
flyway.baseline-on-migrate = true`
Answer of Seth is worked for me.
But I changed

```
flyway.setBaselineOnMigrate(true);

```

for

```
flyway.baseline();

```