metamaps--metamaps/db/migrate/20140625212637_add_image_and_audio_to_topics.rb
2014-07-07 21:02:43 -04:00

12 lines
250 B
Ruby

class AddImageAndAudioToTopics < ActiveRecord::Migration
def self.up
add_attachment :topics, :image
add_attachment :topics, :audio
end
def self.down
remove_attachment :topics, :image
remove_attachment :topics, :audio
end
end