Sha256: d26499991d1c37e7d3b533dca1b4fe64b5491fb90eb50475124a4e55c3501ecd

Contents?: true

Size: 324 Bytes

Versions: 7

Compression:

Stored size: 324 Bytes

Contents

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

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

7 entries across 7 versions & 1 rubygems

Version Path
card-1.18.6 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.5 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.4 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.3 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.2 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.1 db/migrate_core_cards/20130419215612_import_help_text.rb
card-1.18.0 db/migrate_core_cards/20130419215612_import_help_text.rb