metamaps--metamaps/db/migrate/20140625212637_add_image_and_audio_to_topics.rb

12 lines
250 B
Ruby
Raw Normal View History

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