seed_generators prefix
This commit is contained in:
@@ -3,6 +3,10 @@ class SeedGenerator < ApplicationRecord
|
||||
def self.generate_id(model, prefix)
|
||||
model_name = self.get_model_name(model)
|
||||
|
||||
if ENV["SERVER_MODE"] == 'cloud'
|
||||
prefix = "C#{prefix}"
|
||||
end
|
||||
|
||||
cur_val, next_val = self.update_seed(model_name)
|
||||
|
||||
if (cur_val == 0)
|
||||
|
||||
Reference in New Issue
Block a user