11 lines
230 B
Ruby
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
|