Sha256: 0492d70faa627d727c6c5b88cc885019a95279f9bb0bc597132371e05c6884dd
Contents?: true
Size: 808 Bytes
Versions: 26
Compression:
Stored size: 808 Bytes
Contents
class AddMetadataToSpreeMultipleTables < ActiveRecord::Migration[5.2] def change %i[ spree_assets spree_option_types spree_option_values spree_properties spree_promotions spree_payment_methods spree_shipping_methods spree_prototypes spree_refunds spree_customer_returns spree_users spree_addresses spree_credit_cards spree_store_credits ].each do |table_name| change_table table_name do |t| if t.respond_to? :jsonb add_column table_name, :public_metadata, :jsonb add_column table_name, :private_metadata, :jsonb else add_column table_name, :public_metadata, :json add_column table_name, :private_metadata, :json end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems