Remove incidents count from bounced mails

This commit is contained in:
Karl Erik Õunapuu 2020-09-21 11:46:42 +03:00
parent 6a93395fa4
commit 818869d249
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 11 additions and 8 deletions

View file

@ -0,0 +1,9 @@
class RemoveIncidentsFromBouncedMailAddresses < ActiveRecord::Migration[6.0]
def up
remove_column :bounced_mail_addresses, :incidents
end
def down
add_column :bounced_mail_addresses, :incidents, :integer, null: false, default: 1
end
end

View file

@ -483,7 +483,6 @@ CREATE TABLE public.bounced_mail_addresses (
id bigint NOT NULL,
email character varying NOT NULL,
bounce_reason character varying NOT NULL,
incidents integer DEFAULT 1 NOT NULL,
response_json jsonb,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
@ -4958,6 +4957,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200910085157'),
('20200910102028'),
('20200916125326'),
('20200917104213');
('20200917104213'),
('20200921084356');