drop cc and bcc from messages

these have not been used ever

test plan
 - migrations should run

Change-Id: I44df2abe7df87ff4b3789ec55d8a6a553139155f
Reviewed-on: https://gerrit.instructure.com/48814
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2015-02-13 13:06:56 -07:00
parent ab4664668f
commit e8a310d90f
3 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - 2015 Instructure, Inc.
#
# This file is part of Canvas.
#
@ -33,8 +33,6 @@ class Mailer < ActionMailer::Base
reply_to = reply_to_mailbox(m)
params[:reply_to] = reply_to if reply_to
params[:cc] = m.cc if m.cc
params[:bcc] = m.bcc if m.bcc
mail(params) do |format|
format.text{ render text: m.body }

View File

@ -42,6 +42,7 @@ class ActiveRecord::Base
'failed_jobs' => %w(original_id),
'grading_periods' => %w(course_id account_id),
'groups' => %w(sis_name type groupable_id groupable_type),
'messages' => %w(cc bcc),
'notification_policies' => %w(user_id broadcast),
'page_views' => %w(contributed),
'pseudonyms' => %w(sis_update_data deleted_unique_id sis_source_id crypted_webdav_access_code type),

View File

@ -0,0 +1,13 @@
class DropCcBccFromMessages < ActiveRecord::Migration
tag :postdeploy
def up
remove_column :messages, :cc
remove_column :messages, :bcc
end
def down
add_column :messages, :cc, :string
add_column :messages, :bcc, :string
end
end