diff --git a/db/migrate/20181128054803_old_migrations_removed.rb b/db/migrate/20181128054803_old_migrations_removed.rb index e0ad67a62b..3cd68a2610 100644 --- a/db/migrate/20181128054803_old_migrations_removed.rb +++ b/db/migrate/20181128054803_old_migrations_removed.rb @@ -1,11 +1,8 @@ class OldMigrationsRemoved < ActiveRecord::Migration - LAST_DELETED_MIGRATION = 20181128054803 def up - if ActiveRecord::Migrator.current_version < LAST_DELETED_MIGRATION - message = "You haven't updated your dev environment in a long time! " \ - "Legacy migration files before 2019 have now been removed. " \ - "Run `rails db:schema:load` before running `rails db:migrate`." - raise StandardError, message - end + message = "You haven't updated your dev environment in a long time! " \ + "Legacy migration files before 2019 have now been removed. " \ + "Run `rails db:schema:load` before running `rails db:migrate`." + raise StandardError, message end end