Sha256: 9d51289ee15148cc592d8b4a24b40a174f015a429483cbc99a69e38976eec9b5

Contents?: true

Size: 436 Bytes

Versions: 26

Compression:

Stored size: 436 Bytes

Contents

class AddMetadataToSpreeShipments < ActiveRecord::Migration[5.2]
  def change
    change_table :spree_shipments do |t|
      if t.respond_to? :jsonb
        add_column :spree_shipments, :public_metadata, :jsonb
        add_column :spree_shipments, :private_metadata, :jsonb
      else
        add_column :spree_shipments, :public_metadata, :json
        add_column :spree_shipments, :private_metadata, :json
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_core-4.5.2 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb
spree_core-4.5.1 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb
spree_core-4.5.0 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb
spree_core-4.4.0 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb
spree_core-4.4.0.rc2 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb
spree_core-4.4.0.rc1 db/migrate/20210915064325_add_metadata_to_spree_shipments.rb