increase tokens length

This commit is contained in:
Alex Turchyn
2023-07-08 21:05:29 +03:00
parent dcbdc9e60c
commit 16757acbe0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class Submitter < ApplicationRecord
belongs_to :submission
attribute :values, :string, default: -> { {} }
attribute :slug, :string, default: -> { SecureRandom.base58(8) }
attribute :slug, :string, default: -> { SecureRandom.base58(10) }
serialize :values, JSON
+1 -1
View File
@@ -36,7 +36,7 @@ class Template < ApplicationRecord
attribute :fields, :string, default: -> { [] }
attribute :schema, :string, default: -> { [] }
attribute :submitters, :string, default: -> { [{ name: DEFAULT_SUBMITTER_NAME, uuid: SecureRandom.uuid }] }
attribute :slug, :string, default: -> { SecureRandom.base58(8) }
attribute :slug, :string, default: -> { SecureRandom.base58(10) }
serialize :fields, JSON
serialize :schema, JSON