diff options
| author | Luc Donnet | 2017-09-08 16:30:38 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2017-09-08 16:30:38 +0200 | 
| commit | 44dedd499c075a99027f5442cca5c6802b8dae86 (patch) | |
| tree | 17c615874a7c07115275fa5547a22f61017c39d4 /app/models | |
| parent | 99aff9c3e63fb15b555806847bc14fbf56eeef2a (diff) | |
| download | chouette-core-44dedd499c075a99027f5442cca5c6802b8dae86.tar.bz2 | |
Disable uniqueness of name for referential because it stops import for same referential Refs #4415 @1
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/referential.rb | 1 | 
1 files changed, 0 insertions, 1 deletions
| diff --git a/app/models/referential.rb b/app/models/referential.rb index 65e203f9f..b508e2f33 100644 --- a/app/models/referential.rb +++ b/app/models/referential.rb @@ -11,7 +11,6 @@ class Referential < ActiveRecord::Base    # validates_presence_of :lower_corner    validates_uniqueness_of :slug -  validates_uniqueness_of :name    validates_format_of :slug, :with => %r{\A[a-z][0-9a-z_]+\Z}    validates_format_of :prefix, :with => %r{\A[0-9a-zA-Z_]+\Z}    validates_format_of :upper_corner, :with => %r{\A-?[0-9]+\.?[0-9]*\,-?[0-9]+\.?[0-9]*\Z} | 
