Refactor force delete procedure

- Change `domains.force_delete_at` database column type to date,
rename to `force_delete_date`
- Save `force_delete_date` in application timezone
- Improve tests

Fixes #812, #253
This commit is contained in:
Artur Beljajev 2019-03-22 17:52:09 +02:00
parent f35b2dc36c
commit 5107d2d3a9
20 changed files with 62 additions and 33 deletions

View file

@ -936,7 +936,7 @@ CREATE TABLE public.domains (
registrant_verification_asked_at timestamp without time zone,
registrant_verification_token character varying,
pending_json jsonb,
force_delete_at timestamp without time zone,
force_delete_date date,
statuses character varying[],
reserved boolean DEFAULT false,
status_notes public.hstore,
@ -4935,3 +4935,7 @@ INSERT INTO schema_migrations (version) VALUES ('20190311111718');
INSERT INTO schema_migrations (version) VALUES ('20190312211614');
INSERT INTO schema_migrations (version) VALUES ('20190322152123');
INSERT INTO schema_migrations (version) VALUES ('20190322152529');