Sha256: 6b936c84999ecd813b7e2771adc4391e14238feecad07fbde67df6ced225dbe0

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

class ChangeVendorizedModelsVendorIdType < ActiveRecord::Migration[4.2]
  def change
    SpreeMultiVendor.vendorized_models.each do |klass|
      change_column klass.table_name, :vendor_id, :bigint
    rescue
      message = "Could not change vendor_id column for spree_#{klass}"
      Rails.logger.error message
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spree_multi_vendor-2.5.0 db/migrate/20210728120649_change_vendorized_models_vendor_id_type.rb
spree_multi_vendor-2.4.1 db/migrate/20210728120649_change_vendorized_models_vendor_id_type.rb
atkhayar-dev-spree-multi-vendor-0.0.0 db/migrate/20210728120649_change_vendorized_models_vendor_id_type.rb
spree_multi_vendor-2.4.0 db/migrate/20210728120649_change_vendorized_models_vendor_id_type.rb
spree_multi_vendor-2.3.0 db/migrate/20210728120649_change_vendorized_models_vendor_id_type.rb