このコミットが含まれているのは:
2026-10-01 12:45:10 +09:00
コミット 9d6de29955
7個のファイルの変更、246行の追加、31行の削除
+12
ファイルの表示
@@ -24,6 +24,18 @@ FactoryBot.define do
after(:create) do |tag, evaluator|
evaluator.primary_tag_name.update!(tag:, primary_flg: true)
Locale.where(deprecated_at: nil).order(:language_code, :created_at, :script_code).to_a
.uniq(&:language_code).each do |locale|
next if tag.tag_names.exists?(language_code: locale.language_code,
primary_flg: true)
create(:tag_name,
tag:, language_code: locale.language_code,
script_code: locale.script_code,
name: TagName.generate_name(locale, tag, evaluator.primary_tag_name),
primary_flg: true, auto_generated: true)
end
end
end
end