if defined? ActiveRecord::Migration ActiveRecord::Migration.check_pending! if ActiveRecord::Migration.respond_to?(:check_pending!) ActiveRecord::Migration.maintain_test_schema! if ActiveRecord::Migration.respond_to?(:maintain_test_schema!) end