mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Add zonefile settings to seeds
This commit is contained in:
parent
3d6e04a9de
commit
1d28a414aa
1 changed files with 22 additions and 0 deletions
22
db/seeds.rb
22
db/seeds.rb
|
@ -61,4 +61,26 @@ AdminUser.where(
|
||||||
country_code: 'EE'
|
country_code: 'EE'
|
||||||
).first_or_create!
|
).first_or_create!
|
||||||
|
|
||||||
|
ZonefileSetting.where({
|
||||||
|
origin: 'ee',
|
||||||
|
ttl: 43200,
|
||||||
|
refresh: 3600,
|
||||||
|
retry: 900,
|
||||||
|
expire: 1209600,
|
||||||
|
minimum_ttl: 3600,
|
||||||
|
email: 'hostmaster.eestiinternet.ee',
|
||||||
|
master_nameserver: 'ns.tld.ee'
|
||||||
|
}).first_or_create!
|
||||||
|
|
||||||
|
ZonefileSetting.where({
|
||||||
|
origin: 'pri.ee',
|
||||||
|
ttl: 43200,
|
||||||
|
refresh: 3600,
|
||||||
|
retry: 900,
|
||||||
|
expire: 1209600,
|
||||||
|
minimum_ttl: 3600,
|
||||||
|
email: 'hostmaster.eestiinternet.ee',
|
||||||
|
master_nameserver: 'ns.tld.ee'
|
||||||
|
}).first_or_create!
|
||||||
|
|
||||||
AdminUser.update_all(roles: ['admin'])
|
AdminUser.update_all(roles: ['admin'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue