add rand before save db

parent df3204f9
Pipeline #878 failed with stages
in 0 seconds
...@@ -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
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment