Sha256: 05e3d7d9e695a45f4ad4d37ef9f645f2efcd578ef503fbb7e0be97f037107e36

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

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

class AttachmentUploadCards < Card::CoreMigration
  def up
    Card.create! name: '*new file', type: 'File',
                 codename: 'new_file', empty_ok: true
    Card.create! name: '*new image', type: 'Image',
                 codename: 'new_image', empty_ok: true

    if (js_output = Card['*all+*script+*machine output'])
      #perhaps too narrow?
      js_output.delete!
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.17.4 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.17.3 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.17.2 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.17.1 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.17.0 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb