diff options
author | Vladimir Shushlin <v.shushlin@gmail.com> | 2019-03-20 13:55:44 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2019-03-25 09:43:27 +0300 |
commit | 58a4faf1b6489e22345e90caa1d594c63f5eeea3 (patch) | |
tree | 65d8010309fafebcf032d88ce03fb8eaa1d042d3 | |
parent | d678353707728a8e2082e86ace909c719e985c7f (diff) |
Add empty acme_challenge model
-rw-r--r-- | app/models/pages_domain.rb | 1 | ||||
-rw-r--r-- | app/models/pages_domain_acme_challenge.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/pages_domain.rb b/app/models/pages_domain.rb index 7a33ade826b..bfc9dbeffa2 100644 --- a/app/models/pages_domain.rb +++ b/app/models/pages_domain.rb @@ -5,6 +5,7 @@ class PagesDomain < ActiveRecord::Base VERIFICATION_THRESHOLD = 3.days.freeze belongs_to :project + has_many :acme_challenges, class_name: "PagesDomainAcmeChallenge" validates :domain, hostname: { allow_numeric_hostname: true } validates :domain, uniqueness: { case_sensitive: false } diff --git a/app/models/pages_domain_acme_challenge.rb b/app/models/pages_domain_acme_challenge.rb new file mode 100644 index 00000000000..33bbe24f4d9 --- /dev/null +++ b/app/models/pages_domain_acme_challenge.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class PagesDomainAcmeChallenge < ActiveRecord::Base + belongs_to :pages_domain +end |