mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Renamed owner_contact to registrant
This commit is contained in:
parent
92f41ebe0b
commit
8cd3dcf551
21 changed files with 126 additions and 812 deletions
|
@ -402,11 +402,11 @@ namespace :import do
|
|||
# registrant
|
||||
ActiveRecord::Base.connection.execute(
|
||||
"UPDATE domains "\
|
||||
"SET owner_contact_id = contacts.id "\
|
||||
"SET registrant_id = contacts.id "\
|
||||
"FROM contacts "\
|
||||
"WHERE contacts.legacy_id = legacy_registrant_id "\
|
||||
"AND legacy_registrant_id IS NOT NULL "\
|
||||
"AND owner_contact_id IS NULL"
|
||||
"AND registrant_id IS NULL"
|
||||
)
|
||||
|
||||
# registrar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue