metamaps--metamaps/db/migrate/20140815162253_add_screenshot_to_maps.rb

9 lines
178 B
Ruby

class AddScreenshotToMaps < ActiveRecord::Migration
def self.up
add_attachment :maps, :screenshot
end
def self.down
remove_attachment :maps, :screenshot
end
end