Validate DNS keys count

This commit is contained in:
Martin Lensment 2014-10-06 16:53:26 +03:00
parent 9519538744
commit 39ebabf064
10 changed files with 70 additions and 9 deletions

View file

@ -0,0 +1,7 @@
class AddDnskeyRangeValidation < ActiveRecord::Migration
def change
sg = SettingGroup.find_by(code: 'domain_validation')
sg.settings << Setting.create(code: 'dnskeys_min_count'.underscore, value: '0')
sg.settings << Setting.create(code: 'dnskeys_max_count'.underscore, value: '9')
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20141001085322) do
ActiveRecord::Schema.define(version: 20141006124904) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"