canvas-lms/db/migrate/20110414160750_add_media_co...

12 lines
347 B
Ruby

class AddMediaCommentToContextMessage < ActiveRecord::Migration
def self.up
add_column :context_messages, :media_comment_id, :string
add_column :context_messages, :media_comment_type, :string
end
def self.down
remove_column :context_messages, :media_comment_type
remove_column :context_messages, :media_comment_id
end
end