method

check_target_version

check_target_version()
public

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 180
      def check_target_version
        if target_version && !(Migration::MigrationFilenameRegexp.match?(ENV["VERSION"]) || /\A\d+\z/.match?(ENV["VERSION"]))
          raise "Invalid format of target version: `VERSION=#{ENV['VERSION']}`"
        end
      end