instance method
check_target_version
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
check_target_version()
No documentation comment.
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 309
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 309
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks