method
configured_migrate_path
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Generators::Migration
configured_migrate_path()private
No documentation available.
# 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
)
config&.migrations_paths
end