mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Added registrar legacy migration and don't allow blank nor colon in code
This commit is contained in:
parent
834d638423
commit
8f23ef510d
4 changed files with 89 additions and 2 deletions
|
@ -138,6 +138,6 @@ class Registrar < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def code=(code)
|
||||
self[:code] = code.upcase if new_record? && code.present?
|
||||
self[:code] = code.gsub(/[ :]/, '').upcase if new_record? && code.present?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue