このコミットが含まれているのは:
@@ -7,15 +7,6 @@ FactoryBot.define do
|
||||
|
||||
trait :alias do
|
||||
primary_flg { false }
|
||||
|
||||
after(:create) do |tag_name|
|
||||
owner = tag_name.canonical&.tag
|
||||
raise ArgumentError, 'alias requires a canonical tag' unless owner
|
||||
|
||||
# The alias validation still rejects tag_id; its contract is tested separately.
|
||||
tag_name.update_columns(tag_id: owner.id)
|
||||
tag_name.association(:tag).reset
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする