method
check_target_version
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
check_target_version()public
No documentation available.
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 262
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