Sha256: 6d1b68a671af9637d931a200bc4c7d51983aef6c1fe19c85a5db8d75d1c645c2

Contents?: true

Size: 393 Bytes

Versions: 13

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

13 entries across 13 versions & 1 rubygems

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