method
configured_migrate_path
v6.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 38
def configured_migrate_path
return unless database = options[:database]
config = ActiveRecord::Base.configurations.configs_for(
env_name: Rails.env,
spec_name: database,
)
config&.migrations_paths
end