mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Add zonefile generation procedure
This commit is contained in:
parent
f5ce88b548
commit
ac4b63f390
23 changed files with 370 additions and 255 deletions
28
db/migrate/20141120110330_create_zonefile_setting.rb
Normal file
28
db/migrate/20141120110330_create_zonefile_setting.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
class CreateZonefileSetting < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :zonefile_settings do |t|
|
||||
t.string :origin
|
||||
t.integer :ttl
|
||||
t.integer :refresh
|
||||
t.integer :retry
|
||||
t.integer :expire
|
||||
t.integer :minimum_ttl
|
||||
t.string :email
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
# rubocop: disable Style/NumericLiterals
|
||||
ZonefileSetting.create({
|
||||
origin: 'ee',
|
||||
ttl: 43200,
|
||||
refresh: 3600,
|
||||
retry: 900,
|
||||
expire: 1209600,
|
||||
minimum_ttl: 3600,
|
||||
email: 'hostmaster.eestiinternet.ee'
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue