mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 12:05:25 +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
12 lines
305 B
Ruby
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
|