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_library-0.0.2 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_bookmark-0.0.22 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.1.13 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.0.27 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_subject-0.0.18 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.7 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.6 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.5 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_biblio-0.0.4 db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_subject-0.0.17 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.0.26 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_question-0.0.20 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.0.25 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.16 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_event-0.1.12 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_question-0.0.19 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_bookmark-0.0.21 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_resource_merge-0.0.15 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_bookmark-0.0.20 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
enju_subject-0.0.16 spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb