If I use StoreModel and in a class use the array: true for an attribute that is a jsonb column:
class Person < ApplicationRecord
include StoreModel::Model
class Characteristics
include StoreModel::Model
attribute :height, :integer
attribute :weight, :integer
attribute :hobbies, :string, array: true
end
attribute :characteristics, Characteristics.to_type
end
The following error occurs:
Unable to process app/models/person.rb: unknown keyword: :array
Model files unchanged.
If I use StoreModel and in a class use the
array: true
for an attribute that is a jsonb column:The following error occurs:
Versions