Sha256: 8cc18a90583579b556627bf014b5192dc8f19bb0f0e5e21f1664ac736e65132b

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

# -*- encoding : utf-8 -*-

class ConfigDescriptionsEtc < Cardio::Migration::Core
  def up
    raw_json = File.read(data_path "1.14_config_descriptions_etc.json")
    json = JSON.parse raw_json
    Card.merge_list json["card"]["value"], output_file: "tmp/unmerged_config_text.json"

    # fix missing +*from card
    c = Card.fetch "follower notification email", :from, new: {}
    c.content = Card[:wagn_bot].name
    c.save!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20141115034214_config_descriptions_etc.rb
card-1.101.3 db/migrate_core_cards/20141115034214_config_descriptions_etc.rb
card-1.101.2 db/migrate_core_cards/20141115034214_config_descriptions_etc.rb
card-1.101.1 db/migrate_core_cards/20141115034214_config_descriptions_etc.rb
card-1.101.0 db/migrate_core_cards/20141115034214_config_descriptions_etc.rb