Sha256: 97bedf609c37f139f271c176fcf6d32f4fe961c09e6046389c80b47f0cb6d1dd

Contents?: true

Size: 615 Bytes

Versions: 6

Compression:

Stored size: 615 Bytes

Contents

class AddAttachmentsAttachmentToManifestation < ActiveRecord::Migration[5.2]
  def self.up
    add_column :manifestations, :attachment_file_name, :string
    add_column :manifestations, :attachment_content_type, :string
    add_column :manifestations, :attachment_file_size, :integer
    add_column :manifestations, :attachment_updated_at, :datetime
  end

  def self.down
    remove_column :manifestations, :attachment_file_name
    remove_column :manifestations, :attachment_content_type
    remove_column :manifestations, :attachment_file_size
    remove_column :manifestations, :attachment_updated_at
  end
end

Version data entries

6 entries across 6 versions & 6 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb