canvas-lms/db/migrate/20110824191941_conversation...

12 lines
352 B
Ruby

class ConversationMessageContext < ActiveRecord::Migration
def self.up
add_column :conversation_messages, :context_id, :integer, :limit => 8
add_column :conversation_messages, :context_type, :string
end
def self.down
remove_column :conversation_messages, :context_id
remove_column :conversation_messages, :context_type
end
end