Sha256: b23b299bf0ef866ab975de9fa129242aa18e40759a1db6dd96e202861931de5d

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.16.14 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.13 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.12 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.11 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.10 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.9 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.8 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb
card-1.16.7 db/migrate_core_cards/20150903130006_attachment_upload_cards.rb