seed_generators prefix

This commit is contained in:
Zoey
2019-06-21 11:50:48 +06:30
parent 7e987587c9
commit 9d95dc0f8e
17 changed files with 20 additions and 96 deletions

View File

@@ -122,11 +122,6 @@ class Booking < ApplicationRecord
private
def generate_custom_id
prefix = "BKI"
if ENV["SERVER_MODE"] == 'cloud'
prefix = "CBKI"
end
self.booking_id = SeedGenerator.generate_id(self.class.name, prefix)
self.booking_id = SeedGenerator.generate_id(self.class.name, "BKI")
end
end