Added Paperclip migrations

This commit is contained in:
Christoph Haas 2015-01-04 14:19:27 +01:00
parent 7aca36e46b
commit 4a0a3c3123
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
class AddAttachmentImageToScreenshots < ActiveRecord::Migration
def self.up
change_table :screenshots do |t|
t.attachment :image
end
end
def self.down
remove_attachment :screenshots, :image
end
end

View file

@ -0,0 +1,9 @@
class AddFingerprintColumnToScreenshot < ActiveRecord::Migration
def self.up
add_column :screenshots, :image_fingerprint, :string
end
def self.down
remove_column :screenshots, :image_fingerprint
end
end