Renamed owner_contact to registrant

This commit is contained in:
Priit Tark 2015-04-16 12:23:06 +03:00
parent 92f41ebe0b
commit 8cd3dcf551
21 changed files with 126 additions and 812 deletions

View file

@ -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