mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
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:
commit
c232e8ade6
10 changed files with 139 additions and 143 deletions
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue