Sha256: cee46a5fccb98edecf7da1f1ca0c017a7117543ad4136de68c95bf71b3907f4b

Contents?: true

Size: 471 Bytes

Versions: 26

Compression:

Stored size: 471 Bytes

Contents

class AddMetadataToSpreeStockTransfers < ActiveRecord::Migration[5.2]
  def change
    change_table :spree_stock_transfers do |t|
      if t.respond_to? :jsonb
        add_column :spree_stock_transfers, :public_metadata, :jsonb
        add_column :spree_stock_transfers, :private_metadata, :jsonb
      else
        add_column :spree_stock_transfers, :public_metadata, :json
        add_column :spree_stock_transfers, :private_metadata, :json
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_core-4.10.1 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.10.0 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.9.0 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.8.3 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.8.2 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.7.3 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.6 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.5.5 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.4.1 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.5.4 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.5 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.7.2 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.7.1 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.4 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.7.0 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.3 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.2 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.1 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.6.0 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb
spree_core-4.5.3 db/migrate/20210915064328_add_metadata_to_spree_stock_transfers.rb