Sha256: f164e221dd3859c3b209c3eab3f47c315f8e3b2f72bf3fb9f06a8d6345e72a6d

Contents?: true

Size: 427 Bytes

Versions: 7

Compression:

Stored size: 427 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

7 entries across 7 versions & 1 rubygems

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