Sha256: 8de8ee14ec71448e944d352c06139979b192e7f9ce6ea752a971a61a33ea2ffc

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

# typed: false
class AddSerializedToWizards < ActiveRecord::Migration[5.0]
  def change
    add_column :wizards, :owl_results, :text # Hash
    add_column :wizards, :newt_subjects, :text # generic
    add_column :wizards, :pets, :text # Array
    add_column :wizards, :patronus_characteristics, :text # serialized as JSON, but not a JSON column type
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sorbet-rails-0.7.4 spec/support/v5.0/db/migrate/20190620000015_add_serialized_to_wizards.rb
sorbet-rails-0.7.3 spec/support/v5.0/db/migrate/20190620000015_add_serialized_to_wizards.rb