Sha256: c7da80b6208c35d122618cb241cfdb1e21402ad0b391cfada0dcb0eb6eac3906

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true
# NOTE: This migration is only required if you use the API integration strategy.
# If you're using the XML file instead, you can safely skip these columns.

class AddBactracsApiSyncFields < ActiveRecord::Migration[5.2]
  def change
    if !ActiveRecord::Base.connection.column_exists?(:spree_shipments, :bactracs_synced_at)
      add_column :spree_shipments, :bactracs_synced_at, :datetime
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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