instance method build_watcher

Ruby on Rails 8.0.4

Since v6.1.7.10 Private

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

Signature

build_watcher(&block)

No documentation comment.

Parameters

block block
Source
# File activerecord/lib/active_record/migration.rb, line 674
        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

Defined in activerecord/lib/active_record/migration.rb line 674 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Migration::CheckPending

Type at least 2 characters to search.

↑↓ navigate · open · esc close