mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
make archive and unarchive bypass validations (#773)
This commit is contained in:
parent
ffcb6e6a00
commit
8400178291
1 changed files with 2 additions and 2 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue