mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
* 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
11 lines
305 B
Ruby
11 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
|