Correct SupporterNote Activity.attachment_type typo

This commit is contained in:
Eric Schultz 2021-01-15 14:34:57 -06:00 committed by Eric Schultz
parent 70d18591c3
commit 0748980bf8
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,11 @@
# 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
# The attachment_type for SupporterNote activities is wrong. This code fixes that
class FixTypoInActivityAttachmentType < ActiveRecord::Migration[6.1]
def up
Activity.connection.execute("UPDATE activities SET attachment_type = 'SupporterNote' WHERE (kind = 'SupporterNote' AND attachment_type != 'SupporterNote')")
end
end

View file

@ -4157,6 +4157,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20210105192022'),
('20210107210143'),
('20210111220133'),
('20210114213034');
('20210114213034'),
('20210115203009');