Gavin Dunne
Results
2
comments of
Gavin Dunne
👍 I'll add my vote to the mix. I was trying to accomplish something similar with `dry-types`. ``` class A < Dry::Struct attribute :type, Types::Coercible::String.constrained(eq: "a") attribute :child, self |...
You may have figured this out on your own already, but ActiveRecord 4 has inbuilt support for arrays. ``` add_column :users, :emails, :string, array: true, default: '{}' ```