An incosistence between name uniqueness in DB and appplication - case sensitivity
This commit is contained in:
parent
46129f18b0
commit
7cf81342fd
@ -19,7 +19,7 @@
|
|||||||
class DmsfWorkflow < ActiveRecord::Base
|
class DmsfWorkflow < ActiveRecord::Base
|
||||||
has_many :dmsf_workflow_steps, :dependent => :destroy, :order => 'step ASC, operator DESC'
|
has_many :dmsf_workflow_steps, :dependent => :destroy, :order => 'step ASC, operator DESC'
|
||||||
|
|
||||||
validates_uniqueness_of :name
|
validates_uniqueness_of :name, :case_sensitive => false
|
||||||
validates :name, :presence => true
|
validates :name, :presence => true
|
||||||
validates_length_of :name, :maximum => 255
|
validates_length_of :name, :maximum => 255
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user