mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Refactor, spacing in zone file
This commit is contained in:
parent
ac4b63f390
commit
4caa0ef903
7 changed files with 45 additions and 38 deletions
|
@ -45,14 +45,26 @@ class AddEeDomainObjects < ActiveRecord::Migration
|
|||
admin_contacts: [c],
|
||||
registrar: r
|
||||
)
|
||||
|
||||
pri = Domain.new(
|
||||
name: 'pri.ee',
|
||||
valid_to: Date.new(9999, 1, 1),
|
||||
period: 1,
|
||||
period_unit: 'y',
|
||||
owner_contact: c,
|
||||
admin_contacts: [c],
|
||||
registrar: r
|
||||
)
|
||||
|
||||
pri.save(validate: false)
|
||||
end
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
def down
|
||||
Domain.find_by(name: 'ee').destroy
|
||||
Domain.find_by(name: 'pri.ee').destroy
|
||||
EppUser.find_by(username: 'testeis').destroy
|
||||
Contact.find_by(name: 'EIS').destroy
|
||||
Registrar.find_by(name: 'EIS').destroy
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue