method

configured_migrate_path

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::Generators::Migration
configured_migrate_path() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/rails/generators/active_record/migration.rb, line 42
        def configured_migrate_path
          return unless database = options[:database]

          config = ActiveRecord::Base.configurations.configs_for(
            env_name: Rails.env,
            name: database
          )

          Array(config&.migrations_paths).first
        end
Register or log in to add new notes.