Skip to content

Commit

Permalink
Do not use depricated way of passing serializable type in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Mar 17, 2024
1 parent 0e9765d commit 594082f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/activerecord_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class User < ActiveRecord::Base
enumerize :sex, :in => [:male, :female], scope: :shallow
enumerize :language, :in => [:en, :jp]

serialize :interests, Array
serialize :interests, type: Array
enumerize :interests, :in => [:music, :sports, :dancing, :programming], :multiple => true

enumerize :status, :in => { active: 1, blocked: 2 }, scope: true
Expand Down

0 comments on commit 594082f

Please sign in to comment.