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