Sha256: 5d47a9fe2e8d12b3c93b69ec872e17fd4048dda69a0b972549db46b8e34b038b

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

class AddUuidToSpreeLineItemsAndSpreeShipments < SpreeExtension::Migration[4.2]
  def change
    unless column_exists?(:spree_line_items, :avatax_uuid)
      add_column :spree_line_items, :avatax_uuid, :string
      add_index  :spree_line_items, :avatax_uuid, unique: true
    end

    return if column_exists?(:spree_shipments, :avatax_uuid)

    add_column :spree_shipments, :avatax_uuid, :string
    add_index  :spree_shipments, :avatax_uuid, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_avatax_official-1.8.0 db/migrate/20190225145808_add_uuid_to_spree_line_items_and_spree_shipments.rb
spree_avatax_official-1.7.1 db/migrate/20190225145808_add_uuid_to_spree_line_items_and_spree_shipments.rb