method

build_watcher

Method not available on this version

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

build_watcher(&block)
private

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 678
        def build_watcher(&block)
          current_environment = ActiveRecord::ConnectionHandling::DEFAULT_ENV.call
          all_configs = ActiveRecord::Base.configurations.configs_for(env_name: current_environment)
          paths = all_configs.flat_map { |config| config.migrations_paths || Migrator.migrations_paths }.uniq
          @file_watcher.new([], paths.index_with(["rb"]), &block)
        end