Remove duration controls for blocks that can only be revoked by editing

This commit is contained in:
Anton Khorev 2024-08-21 16:58:34 +03:00
parent 5e7ab68721
commit 11a7bf7e0e
4 changed files with 53 additions and 5 deletions

View file

@ -7,6 +7,12 @@ FactoryBot.define do
user
creator :factory => :moderator_user
trait :zero_hour do
now = Time.now.utc
created_at { now }
ends_at { now }
end
trait :needs_view do
needs_view { true }
deactivates_at { nil }