Sha256: b4afed59eaa9cdf3f4df7dba2781acf4eac3d03b68286caaa411c45e766eed5e
Contents?: true
Size: 301 Bytes
Versions: 12
Compression:
Stored size: 301 Bytes
Contents
class MigrateStripePreferences < ActiveRecord::Migration def up Spree::Preference.where("#{ActiveRecord::Base.connection.quote_column_name("key")} LIKE 'spree/gateway/stripe_gateway/login%'").each do |pref| pref.key = pref.key.gsub('login', 'secret_key') pref.save end end end
Version data entries
12 entries across 12 versions & 3 rubygems