Sha256: 96c28ebfab5864ede79269c8a5491e7f687138319573c7f80fc430944499215e

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

class ChangeVendorIdAndUserIdTypeForSpreeVendorUsers < ActiveRecord::Migration[4.2]
  def up
    change_table(:spree_vendor_users) do |t|
      t.change :vendor_id, :bigint
      t.change :user_id, :bigint
    end
  end
  def down
    change_table(:spree_vendor_users) do |t|
      t.change :vendor_id, :integer
      t.change :user_id, :integer
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
spree_multi_vendor-2.5.0 db/migrate/20210728120910_change_vendor_id_and_user_id_type_for_spree_vendor_users.rb
spree_multi_vendor-2.4.1 db/migrate/20210728120910_change_vendor_id_and_user_id_type_for_spree_vendor_users.rb
atkhayar-dev-spree-multi-vendor-0.0.0 db/migrate/20210728120910_change_vendor_id_and_user_id_type_for_spree_vendor_users.rb
spree_multi_vendor-2.4.0 db/migrate/20210728120910_change_vendor_id_and_user_id_type_for_spree_vendor_users.rb