Set TagMaster.deleted to false

This commit is contained in:
Eric Schultz 2021-01-11 12:44:07 -06:00 committed by Eric Schultz
parent 7fb83b8657
commit 04b48408c8
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,10 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
class SetTagDeletedToDefaultFalse < ActiveRecord::Migration[6.1]
def change
change_column_default :tag_masters, :deleted, from: nil, to: false
change_column_null :tag_masters, :deleted, false
end
end

View file

@ -2170,7 +2170,7 @@ CREATE TABLE public.tag_masters (
id integer NOT NULL,
name character varying(255),
nonprofit_id integer,
deleted boolean,
deleted boolean DEFAULT false NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
@ -4154,6 +4154,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200423222447'),
('20200901214156'),
('20210105192021'),
('20210105192022');
('20210105192022'),
('20210107210143');