issue #10 - wrap migrations in conditions