update for db changed

This commit is contained in:
Yan
2017-06-05 13:28:40 +06:30
parent c4e6f917f4
commit 1dbe133b79
5 changed files with 20 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ class SeedGenerator < ApplicationRecord
seed.current = current_no
seed.save
end
padding_len = 16 - prefix.len
padding_len = 16 - prefix.length
return prefix +"-"+ seed.current.to_s.to_s.rjust((16-prefix.length)+1,'0')
end