Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
g5k-api
Commits
5f3d4c30
Commit
5f3d4c30
authored
Apr 30, 2020
by
Samir Noir
🧀
Browse files
Fix validates_uniqueness_of deprecated case sensitive
parent
5075f915
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/grid5000/deployment.rb
View file @
5f3d4c30
...
...
@@ -26,7 +26,7 @@ module Grid5000
serialize
:result
,
JSON
validates_presence_of
:user_uid
,
:site_uid
,
:environment
,
:nodes
validates_uniqueness_of
:uid
validates_uniqueness_of
:uid
,
:case_sensitive
=>
true
before_create
do
self
.
created_at
||=
Time
.
now
.
to_i
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment