Merge pull request #2271 from internetee/2216-update-fd-notes

Update FD notes when basis of the FD is changed
This commit is contained in:
Timo Võhmar 2022-02-23 17:17:58 +02:00 committed by GitHub
commit c232e8ade6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 139 additions and 143 deletions

View file

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

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