diff options
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/migrate/schema_check.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/migrate/schema_check.rake b/lib/tasks/migrate/schema_check.rake index e8505e576a4..d78599a3759 100644 --- a/lib/tasks/migrate/schema_check.rake +++ b/lib/tasks/migrate/schema_check.rake @@ -1,5 +1,7 @@ desc 'Configures the database by running migrate, or by loading the schema and seeding if needed' task schema_version_check: :environment do + next if ENV['SKIP_SCHEMA_VERSION_CHECK'] + schema_version = ActiveRecord::Migrator.current_version # Ensure migrations are being run from a supported schema version |