method

schema_cache_env

rails latest stable - Class: ActiveRecord::Tasks::DatabaseTasks

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

schema_cache_env()
private

No documentation available.

# File activerecord/lib/active_record/tasks/database_tasks.rb, line 550
        def schema_cache_env
          if ENV["SCHEMA_CACHE"]
            ActiveRecord.deprecator.warn(<<~MSG.squish)
              Setting `ENV["SCHEMA_CACHE"]` is deprecated and will be removed in Rails 8.0.
              Configure the `:schema_cache_path` in the database configuration instead.
            MSG

            nil
          end
        end