post disapprovals: refactor disapproval reasons.

* Factor out reasons into a constant
* Change column default and eliminate unused `legacy` reason.
This commit is contained in:
evazion
2020-04-03 15:57:29 -05:00
parent 3e792019e5
commit fde42022c0
9 changed files with 20 additions and 15 deletions

View File

@@ -2644,7 +2644,7 @@ CREATE TABLE public.post_disapprovals (
post_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
reason character varying DEFAULT 'legacy'::character varying,
reason character varying NOT NULL,
message text
);
@@ -7364,6 +7364,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200309043653'),
('20200318224633'),
('20200325073456'),
('20200325074859');
('20200325074859'),
('20200403210353');