Sha256: 44d89f79592fddd51eaf323af5bab399bf830fba408620c0d1b96199e925a93c

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

class AddAttachmentAvatarToPapers < ActiveRecord::Migration
  def self.up
    add_column :papers, :avatar_file_name, :string
    add_column :papers, :avatar_content_type, :string
    add_column :papers, :avatar_file_size, :integer
    add_column :papers, :avatar_updated_at, :datetime
  end

  def self.down
    remove_column :papers, :avatar_file_name
    remove_column :papers, :avatar_content_type
    remove_column :papers, :avatar_file_size
    remove_column :papers, :avatar_updated_at
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
annotator-0.0.10 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.9 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.8.1 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.8 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.7 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.6 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.5 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb
annotator-0.0.4 test/dummy/db/migrate/20120527023417_add_attachment_avatar_to_papers.rb