Sha256: 5f9f4e6d45cbabbab619244bef1df7d290fb79e6c94a51f3f1863f39fda38d62

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

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

class ImportHelpText < Cardio::Migration::Core
  def up
    dir = data_path "1.11_help_text.json"
    data = JSON.parse(File.read dir)
    data.each do |atom|
      c = atom["card"]
      Card.merge c["name"], { type: c["type"], content: atom["views"][0]["parts"] }, pristine: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.101.4 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.101.3 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.101.2 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.101.1 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.101.0 db/migrate_core_cards/20130419215612_import_help_text.rb