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

14 lines
370 B
Ruby

class ConversationMessageContext < ActiveRecord::Migration
tag :predeploy
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