aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorLuc Donnet2017-09-08 16:30:38 +0200
committerLuc Donnet2017-09-08 16:30:38 +0200
commit44dedd499c075a99027f5442cca5c6802b8dae86 (patch)
tree17c615874a7c07115275fa5547a22f61017c39d4 /app/models
parent99aff9c3e63fb15b555806847bc14fbf56eeef2a (diff)
downloadchouette-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.rb1
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}