make archive and unarchive bypass validations (#773)

This commit is contained in:
Echo 2026-01-06 11:19:44 -05:00 committed by GitHub
parent ffcb6e6a00
commit 8400178291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,11 +34,11 @@ class ProjectRepoMapping < ApplicationRecord
after_update :sync_repository_if_url_changed, if: :repo_url_required?
def archive!
update!(archived_at: Time.current)
update_column(:archived_at, Time.current)
end
def unarchive!
update!(archived_at: nil)
update_column(:archived_at, nil)
end
def archived?