instance method
check_target_version
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
check_target_version()
No documentation comment.
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 317
def check_target_version
if target_version && !Migration.valid_version_format?(ENV["VERSION"])
raise "Invalid format of target version: `VERSION=#{ENV['VERSION']}`"
end
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 317
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks