Sha256: 316fb7abc19ee3ad639d5d3f8a82c98c0faa5e7e2956bee65c94ade3514d2465
Contents?: true
Size: 430 Bytes
Versions: 26
Compression:
Stored size: 430 Bytes
Contents
class AddMetadataToSpreeProducts < ActiveRecord::Migration[5.2] def change change_table :spree_products do |t| if t.respond_to? :jsonb add_column :spree_products, :public_metadata, :jsonb add_column :spree_products, :private_metadata, :jsonb else add_column :spree_products, :public_metadata, :json add_column :spree_products, :private_metadata, :json end end end end
Version data entries
26 entries across 26 versions & 1 rubygems