diff --git a/db/migrate/20150103182901_add_attachment_image_to_screenshots.rb b/db/migrate/20150103182901_add_attachment_image_to_screenshots.rb new file mode 100644 index 0000000..4dba184 --- /dev/null +++ b/db/migrate/20150103182901_add_attachment_image_to_screenshots.rb @@ -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 diff --git a/db/migrate/20150103194230_add_fingerprint_column_to_screenshot.rb b/db/migrate/20150103194230_add_fingerprint_column_to_screenshot.rb new file mode 100644 index 0000000..b3e2963 --- /dev/null +++ b/db/migrate/20150103194230_add_fingerprint_column_to_screenshot.rb @@ -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