Sha256: dacd6a479e414fe25b74bc4439967c1c29762a8af0762be3a0467f65666c5bc6

Contents?: true

Size: 578 Bytes

Versions: 6

Compression:

Stored size: 578 Bytes

Contents

class AddAttachmentsPictureToPictureFile < ActiveRecord::Migration[5.2]
  def self.up
    add_column :picture_files, :picture_file_name, :string
    add_column :picture_files, :picture_content_type, :string
    add_column :picture_files, :picture_file_size, :integer
    add_column :picture_files, :picture_updated_at, :datetime
  end

  def self.down
    remove_column :picture_files, :picture_file_name
    remove_column :picture_files, :picture_content_type
    remove_column :picture_files, :picture_file_size
    remove_column :picture_files, :picture_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/20090705133942_add_attachments_picture_to_picture_file.rb
enju_ndl-0.4.0.rc.1 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_circulation-0.4.0.rc.1 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_manifestation_viewer-0.4.0.rc.1 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_subject-0.4.0.rc.1 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.4.0.rc.1 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb