APIdock / Ruby on Rails
/
Browse About
method

check_target_version

v7.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 303
      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

Related methods

  • Instance methods
  • cache_dump_filename
  • charset
  • charset_current
  • check_protected_environments!
  • check_schema_file
  • check_target_version
  • clear_schema_cache
  • collation
  • collation_current
  • create
  • create_all
  • create_current
  • db_configs_with_versions
  • db_dir
  • drop
  • drop_all
  • drop_current
  • dump_schema
  • dump_schema_cache
  • env
  • fixtures_path
  • for_each
  • load_schema
  • load_schema_current
  • load_seed
  • migrate
  • migrate_status
  • migrations_paths
  • name
  • prepare_all
  • purge
  • purge_all
  • purge_current
  • raise_for_multi_db
  • reconstruct_from_schema
  • register_task
  • root
  • schema_dump_path
  • schema_file_type
  • schema_up_to_date?
  • seed_loader
  • setup_initial_database_yaml
  • structure_dump
  • structure_load
  • target_version
  • truncate_all
  • Class methods
  • structure_dump_flags
  • structure_load_flags
  • Private methods
  • privateclass_for_adapter
  • privateconfigs_for
  • privatedatabase_adapter_for
  • privateeach_current_configuration
  • privateeach_local_configuration
  • privatelocal_database?
  • privateresolve_configuration
  • privateschema_sha1
  • privatestructure_dump_flags_for
  • privatestructure_load_flags_for
  • privatetruncate_tables
  • privateverbose?
APIdock API Documentation Browser

Swarmia helps engineering teams measure and improve developer productivity.

© 2026 APIdock