Sha256: 134c27eb947c1aa8adc6c04ab5927ae13c80de317906bd4a999a905b65259127

Contents?: true

Size: 573 Bytes

Versions: 629

Compression:

Stored size: 573 Bytes

Contents

class AddAttachmentsPictureToPictureFile < ActiveRecord::Migration
  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

629 entries across 621 versions & 23 rubygems

Version Path
enju_event-0.1.11 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.3 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_question-0.0.18 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.14 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.13 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.2 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.1 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.12 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.11 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb