Skip to content

Commit

Permalink
Rails 7.2.2: pass the class as a keyword argument in serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
fcd1 committed Nov 13, 2024
1 parent fc4460c commit b2e2f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Collection < ApplicationRecord
validates :name, presence: true
validates :atom_title, presence: true
validates :slug, presence: true
serialize :mime_types, Array
serialize :sword_package_types, Array
serialize :mime_types, type: Array
serialize :sword_package_types, type: Array
has_many :deposits
has_many :depositor_collection_pairings, dependent: :destroy
has_many :depositors, through: :depositor_collection_pairings
Expand Down

0 comments on commit b2e2f3f

Please sign in to comment.