instance method schema_dump_path

Ruby on Rails 7.0.10

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

schema_dump_path(db_config, format = ActiveRecord.schema_format)

No documentation comment.

Parameters

db_config req
format opt = ActiveRecord.schema_format
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 457
      def schema_dump_path(db_config, format = ActiveRecord.schema_format)
        return ENV["SCHEMA"] if ENV["SCHEMA"]

        filename = db_config.schema_dump(format)
        return unless filename

        if File.dirname(filename) == ActiveRecord::Tasks::DatabaseTasks.db_dir
          filename
        else
          File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, filename)
        end
      end

Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 457 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Tasks::DatabaseTasks

Type at least 2 characters to search.

↑↓ navigate · open · esc close