Sha256: f2f0c967cccf346253bffa1da167b51a19b56a31c807b9aca575171213e341c7

Contents?: true

Size: 435 Bytes

Versions: 13

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

class RenameBactracsColumnsInSpreeShipment < ActiveRecord::Migration[5.2]
  def change
    if ( ActiveRecord::Base.connection.column_exists?(:spree_shipments, :backtracs_sync_verified_at) &&
        !ActiveRecord::Base.connection.column_exists?(:spree_shipments, :bactracs_sync_verified_at))
      rename_column :spree_shipments, :backtracs_sync_verified_at, :bactracs_sync_verified_at
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
solidus_bactracs-4.0.1 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-4.0.0 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.5.2 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.5.1 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.5.0 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.4.0 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.3.2 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.3.1 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.3.0 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.2.2 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.2.1 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.2.0 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb
solidus_bactracs-3.1.2 db/migrate/20220704144504_rename_bactracs_columns_in_spree_shipment.rb