Add email_history to registrar

This commit is contained in:
dinsmol 2022-01-14 01:17:51 +03:00
parent f7cc5a8965
commit 57e156e407
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class AddEmailHistoryToRegistrars < ActiveRecord::Migration[6.1]
def change
add_column :registrars, :email_history, :string
reversible do |dir|
dir.up { Registrar.update_all('email_history = email') }
end
end
end

View file

@ -2417,7 +2417,8 @@ CREATE TABLE public.registrars (
iban character varying,
settings jsonb DEFAULT '{}'::jsonb NOT NULL,
legaldoc_optout boolean DEFAULT false NOT NULL,
legaldoc_optout_comment text
legaldoc_optout_comment text,
email_history character varying
);
@ -5273,6 +5274,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20211125184334'),
('20211126085139'),
('20220106123143'),
('20220113201642');
('20220113201642'),
('20220113220809');