rename deleted_at to archived_at

This commit is contained in:
Pete Matsyburka
2023-12-30 00:37:03 +02:00
parent cfb1bdcd52
commit 6d7d8ae87c
24 changed files with 71 additions and 65 deletions
+2 -2
View File
@@ -38,9 +38,9 @@ module Api
end
def destroy
@template.update!(deleted_at: Time.current)
@template.update!(archived_at: Time.current)
render json: @template.as_json(only: %i[id deleted_at])
render json: @template.as_json(only: %i[id archived_at])
end
private