14 lines
365 B
Ruby
14 lines
365 B
Ruby
class AddMediaCommentToContextMessage < ActiveRecord::Migration
|
|
tag :predeploy
|
|
|
|
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
|