add rand before save db

parent df3204f9
Pipeline #878 failed with stages
in 0 seconds
......@@ -12,6 +12,6 @@ class City < ApplicationRecord
private
def normalize_attribute
name
"#{name} #{rand(10000)}"
end
end
......@@ -5,6 +5,6 @@ class Company < ApplicationRecord
private
def normalize_attribute
name
"#{name} #{rand(10000)}"
end
end
......@@ -9,6 +9,6 @@ class Industry < ApplicationRecord
private
def normalize_attribute
name
"#{name} #{rand(10000)}"
end
end
......@@ -27,7 +27,7 @@ class Job < ApplicationRecord
private
def normalize_attribute
title
"#{title} #{rand(10000)}"
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