Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Huỳnh Thiên Phước
venjob
Commits
942f54ff
Commit
942f54ff
authored
Aug 11, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rand before save db
parent
df3204f9
Pipeline
#878
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/city.rb
+1
-1
app/models/company.rb
+1
-1
app/models/industry.rb
+1
-1
app/models/job.rb
+1
-1
No files found.
app/models/city.rb
View file @
942f54ff
...
@@ -12,6 +12,6 @@ class City < ApplicationRecord
...
@@ -12,6 +12,6 @@ class City < ApplicationRecord
private
private
def
normalize_attribute
def
normalize_attribute
name
"
#{
name
}
#{
rand
(
10000
)
}
"
end
end
end
end
app/models/company.rb
View file @
942f54ff
...
@@ -5,6 +5,6 @@ class Company < ApplicationRecord
...
@@ -5,6 +5,6 @@ class Company < ApplicationRecord
private
private
def
normalize_attribute
def
normalize_attribute
name
"
#{
name
}
#{
rand
(
10000
)
}
"
end
end
end
end
app/models/industry.rb
View file @
942f54ff
...
@@ -9,6 +9,6 @@ class Industry < ApplicationRecord
...
@@ -9,6 +9,6 @@ class Industry < ApplicationRecord
private
private
def
normalize_attribute
def
normalize_attribute
name
"
#{
name
}
#{
rand
(
10000
)
}
"
end
end
end
end
app/models/job.rb
View file @
942f54ff
...
@@ -27,7 +27,7 @@ class Job < ApplicationRecord
...
@@ -27,7 +27,7 @@ class Job < ApplicationRecord
private
private
def
normalize_attribute
def
normalize_attribute
title
"
#{
title
}
#{
rand
(
10000
)
}
"
end
end
end
end
Write
Preview
Markdown
is supported
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