parent
699db454c3
commit
7a1f8a58df
7 changed files with 24 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
|||
class DomainAllow < ApplicationRecord
|
||||
include DomainNormalizable
|
||||
|
||||
validates :domain, presence: true, uniqueness: true
|
||||
validates :domain, presence: true, uniqueness: true, domain: true
|
||||
|
||||
scope :matches_domain, ->(value) { where(arel_table[:domain].matches("%#{value}%")) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue