Sha256: 9dc8d40239e220ea13397b9504086a86e4d22325aa284f46356c73ccdf3530d1

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

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

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

10 entries across 10 versions & 1 rubygems

Version Path
wagn-1.14.9 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.8 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.7 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.6 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.5 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.4 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.3 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.2 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.1 db/migrate_core_cards/20130419215612_import_help_text.rb
wagn-1.14.0 db/migrate_core_cards/20130419215612_import_help_text.rb