Skip to content

Commit

Permalink
[POD-1795] deprecate old serialized fields
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay committed Jul 22, 2022
1 parent 165c215 commit ab21212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/models/digital_status.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
class DigitalStatus < ActiveRecord::Base
require 'json/ext'

serialize :options, Hash
serialize :options_json, JSON
serialize :options, JSON
belongs_to :physical_object
validates :physical_object, presence: true
validates :physical_object_mdpi_barcode, presence: true
before_validation :set_mdpi_barcode_from_object

DIGITAL_STATUS_START = "transferred"
serialized_empty_hash = {}.to_yaml.to_s
serialized_empty_hash = {}.to_json.to_s
# the number of hours after digitization start that a video physical object is auto-accepted
@@Video_File_Auto_Accept = TechnicalMetadatumModule::GENRE_AUTO_ACCEPT_DAYS[:video] * 24
# the number of hours after digitization start that an audio physical object is auto-accepted
Expand Down
3 changes: 1 addition & 2 deletions app/models/memnon_invoice_submission.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class MemnonInvoiceSubmission < ActiveRecord::Base
serialize :problems_by_row
serialize :problems_by_row_json, JSON
serialize :problems_by_row, JSON
validates :filename, presence: true
end

0 comments on commit ab21212

Please sign in to comment.