Sha256: fb566589fe897a663526d022f69d40d0734d5dd6cc7581c591e40262183f7a63
Contents?: true
Size: 857 Bytes
Versions: 8
Compression:
Stored size: 857 Bytes
Contents
# -*- encoding : utf-8 -*- class UpgradeRecaptchaToV3 < Cardio::Migration::Core def up update_card! %i[recaptcha_settings self structure], content: <<~STRING {{+site key}} {{+secret key}} {{+minimum score}} {{+proxy}} STRING { public: :site, private: :secret }.each do |old_name, new_name| codename = "recaptcha_#{old_name}_key".to_sym next unless Card::Codename[codename] update_card! codename, name: "#{Card[:recaptcha_settings].name}+#{new_name} key", codename: "recaptcha_#{new_name}_key" end Card.ensure name: [Card[:recaptcha_settings].name, "minimum score"], codename: "recaptcha_minimum_score", type_id: Card::NumberID end end
Version data entries
8 entries across 8 versions & 1 rubygems