debshots/db/migrate/20150103182901_add_attachment_image_to_screenshots.rb

11 lines
230 B
Ruby

class AddAttachmentImageToScreenshots < ActiveRecord::Migration[5.0]
def self.up
change_table :screenshots do |t|
t.attachment :image
end
end
def self.down
remove_attachment :screenshots, :image
end
end