Set supporters.anonymous to default to false
This commit is contained in:
parent
6097ad68b7
commit
4271334311
2 changed files with 13 additions and 2 deletions
|
@ -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 SetAnonymousToDefaultToFalse < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
change_column_default :supporters, :anonymous, from: nil, to: false
|
||||||
|
change_column_null :supporters, :anonymous, false, false
|
||||||
|
end
|
||||||
|
end
|
|
@ -2056,7 +2056,7 @@ CREATE TABLE public.supporters (
|
||||||
address character varying(255),
|
address character varying(255),
|
||||||
city character varying(255),
|
city character varying(255),
|
||||||
state_code character varying(255),
|
state_code character varying(255),
|
||||||
anonymous boolean,
|
anonymous boolean DEFAULT false NOT NULL,
|
||||||
zip_code character varying(255),
|
zip_code character varying(255),
|
||||||
latitude double precision,
|
latitude double precision,
|
||||||
longitude double precision,
|
longitude double precision,
|
||||||
|
@ -4159,6 +4159,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20210111220133'),
|
('20210111220133'),
|
||||||
('20210114213034'),
|
('20210114213034'),
|
||||||
('20210115203009'),
|
('20210115203009'),
|
||||||
('20210115230815');
|
('20210115230815'),
|
||||||
|
('20210119195318');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue