Files
discourse/migrations/spec/support/helpers.rb
Gerhard Schlager 71a90dcba2 DEV: Refactor migrations-tooling
* Updates GitHub Action for migrations
* Rubocop: Always `EnforcedShorthandSyntax` for hashes in the `migrations` directory
* Automatically load all available converter steps
* Enable YJIT at runtime, if available
* Progressbar shows skipped records and other small improvements
2025-04-07 17:22:36 +02:00

12 lines
305 B
Ruby

# frozen_string_literal: true
def reset_memoization(instance, *variables)
variables.each do |var|
instance.remove_instance_variable(var) if instance.instance_variable_defined?(var)
end
end
def fixture_root
@fixture_root ||= File.join(::Migrations.root_path, "spec", "support", "fixtures")
end