From ac744fd4fceb996dcafe7958dd35b081331f46fe Mon Sep 17 00:00:00 2001 From: Vladimir Shushlin Date: Tue, 30 Apr 2019 12:05:54 +0000 Subject: Remove disabled pages domains Domain will be removed by verification worker after 1 week of being disabled --- spec/factories/pages_domains.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/factories/pages_domains.rb') diff --git a/spec/factories/pages_domains.rb b/spec/factories/pages_domains.rb index b74f72f2bd3..db8384877b0 100644 --- a/spec/factories/pages_domains.rb +++ b/spec/factories/pages_domains.rb @@ -45,6 +45,10 @@ nNp/xedE1YxutQ== remove_at { 1.day.from_now } end + trait :should_be_removed do + remove_at { 1.day.ago } + end + trait :unverified do verified_at nil end -- cgit v1.2.3