Added Paperclip migrations
This commit is contained in:
parent
7aca36e46b
commit
4a0a3c3123
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue