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:
parent
28d5f8eb60
commit
d3d356f89a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue