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
+3 -3
View File
@@ -6,7 +6,7 @@
#
# id :bigint not null, primary key
# application_key :string
# deleted_at :datetime
# archived_at :datetime
# fields :text not null
# name :string not null
# schema :text not null
@@ -58,8 +58,8 @@ class Template < ApplicationRecord
has_many :submissions, dependent: :destroy
scope :active, -> { where(deleted_at: nil) }
scope :archived, -> { where.not(deleted_at: nil) }
scope :active, -> { where(archived_at: nil) }
scope :archived, -> { where.not(archived_at: nil) }
private