|
|
|
@ -46,6 +46,7 @@ class Template < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
|
|
attribute :preferences, :string, default: -> { {} }
|
|
|
|
attribute :preferences, :string, default: -> { {} }
|
|
|
|
attribute :fields, :string, default: -> { [] }
|
|
|
|
attribute :fields, :string, default: -> { [] }
|
|
|
|
|
|
|
|
attribute :shared_link, :boolean, default: true
|
|
|
|
attribute :schema, :string, default: -> { [] }
|
|
|
|
attribute :schema, :string, default: -> { [] }
|
|
|
|
attribute :submitters, :string, default: -> { [{ name: I18n.t(:first_party), uuid: SecureRandom.uuid }] }
|
|
|
|
attribute :submitters, :string, default: -> { [{ name: I18n.t(:first_party), uuid: SecureRandom.uuid }] }
|
|
|
|
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
|
|
|
|
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
|
|
|
|
|