Sha256: 4a78cc5ae22fe64ab9e6a60dc32a232aa27942699410070d950c48e51d4c1561

Contents?: true

Size: 326 Bytes

Versions: 60

Compression:

Stored size: 326 Bytes

Contents

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

class ImportHelpText < Card::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

60 entries across 60 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.6 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.5 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.4 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.3 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.2 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.1 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.99.0 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.98.3 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.98.2 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.98.1 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.98.0 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.97.0.1 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.97.0 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.8 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.7 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.6 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.5 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.4 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.96.3 db/migrate_core_cards/20130419215612_import_help_text.rb