rails v7.1.2 and ruby to v3.3.0

This commit is contained in:
Alex Turchyn
2023-12-29 18:50:14 +00:00
committed by Pete Matsyburka
parent b94dbc75b7
commit fe845bfa36
22 changed files with 226 additions and 194 deletions
+1 -1
View File
@@ -60,5 +60,5 @@ class AccountConfig < ApplicationRecord
belongs_to :account
serialize :value, JSON
serialize :value, coder: JSON
end
+1 -1
View File
@@ -34,5 +34,5 @@ class EncryptedConfig < ApplicationRecord
encrypts :value
serialize :value, JSON
serialize :value, coder: JSON
end
+1 -1
View File
@@ -25,5 +25,5 @@ class EncryptedUserConfig < ApplicationRecord
encrypts :value
serialize :value, JSON
serialize :value, coder: JSON
end
+4 -4
View File
@@ -39,10 +39,10 @@ class Submission < ApplicationRecord
attribute :preferences, :string, default: -> { {} }
serialize :template_fields, JSON
serialize :template_schema, JSON
serialize :template_submitters, JSON
serialize :preferences, JSON
serialize :template_fields, coder: JSON
serialize :template_schema, coder: JSON
serialize :template_submitters, coder: JSON
serialize :preferences, coder: JSON
attribute :source, :string, default: 'link'
attribute :submitters_order, :string, default: 'random'
+1 -1
View File
@@ -31,7 +31,7 @@ class SubmissionEvent < ApplicationRecord
attribute :data, :string, default: -> { {} }
attribute :event_timestamp, :datetime, default: -> { Time.current }
serialize :data, JSON
serialize :data, coder: JSON
before_validation :set_submission_id, on: :create
+2 -2
View File
@@ -41,8 +41,8 @@ class Submitter < ApplicationRecord
attribute :preferences, :string, default: -> { {} }
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
serialize :values, JSON
serialize :preferences, JSON
serialize :values, coder: JSON
serialize :preferences, coder: JSON
has_many_attached :documents
has_many_attached :attachments
+3 -3
View File
@@ -47,9 +47,9 @@ class Template < ApplicationRecord
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
attribute :source, :string, default: 'native'
serialize :fields, JSON
serialize :schema, JSON
serialize :submitters, JSON
serialize :fields, coder: JSON
serialize :schema, coder: JSON
serialize :submitters, coder: JSON
has_many_attached :documents
+1 -1
View File
@@ -25,5 +25,5 @@ class UserConfig < ApplicationRecord
belongs_to :user
serialize :value, JSON
serialize :value, coder: JSON
end