fix some migration rollbacks

Change-Id: Icd0faea42d6eae75604f9fc0f51df77072fc37a2
Reviewed-on: https://gerrit.instructure.com/36814
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
This commit is contained in:
Michael Ziwisky 2014-06-24 15:42:30 -05:00
parent 28d5f8eb60
commit d3d356f89a
2 changed files with 5 additions and 1 deletions

View File

@ -23,4 +23,8 @@ class FixDuplicateCommunicationChannels < ActiveRecord::Migration
add_index :communication_channels, [:user_id, :path, :path_type], unique: true
end
end
def self.down
remove_index :communication_channels, [:user_id, :path, :path_type]
end
end

View File

@ -6,6 +6,6 @@ class AddReplyToNameToMessages < ActiveRecord::Migration
end
def self.down
remove_column :messages, :reply_to_name, :string
remove_column :messages, :reply_to_name
end
end