Sha256: 0677d635ad5d723704cae29429aa384a394a0bb6f779bbc7708fe618e346fb63
Contents?: true
Size: 447 Bytes
Versions: 22
Compression:
Stored size: 447 Bytes
Contents
class AddMetadataToSpreeStockItems < ActiveRecord::Migration[5.2] def change change_table :spree_stock_items do |t| if t.respond_to? :jsonb add_column :spree_stock_items, :public_metadata, :jsonb add_column :spree_stock_items, :private_metadata, :jsonb else add_column :spree_stock_items, :public_metadata, :json add_column :spree_stock_items, :private_metadata, :json end end end end
Version data entries
22 entries across 22 versions & 1 rubygems