Remove redundant database column domains.registered_at

Alias `Domain#registered_at` to `created_at`

Closes #1442
This commit is contained in:
Artur Beljajev 2019-12-17 03:55:13 +02:00 committed by Alex Sherman
parent bfa60a9c17
commit 41fee1d098
7 changed files with 16 additions and 7 deletions

View file

@ -41,7 +41,6 @@ class Epp::Domain < Domain
domain = Epp::Domain.new
domain.attributes = domain.attrs_from(frame, current_user)
domain.attach_default_contacts
domain.registered_at = Time.zone.now
period = domain.period.to_i
plural_period_unit_name = (domain.period_unit == 'm' ? 'months' : 'years').to_sym
@ -150,7 +149,6 @@ class Epp::Domain < Domain
at[:name] = frame.css('name').text if new_record?
at[:registrar_id] = current_user.registrar.try(:id)
at[:registered_at] = Time.zone.now if new_record?
period = frame.css('period').text
at[:period] = (period.to_i == 0) ? 1 : period.to_i