diff --git a/db/migrate/20140515163333_fix_duplicate_communication_channels.rb b/db/migrate/20140515163333_fix_duplicate_communication_channels.rb index 73e70f52476..4d99694004c 100644 --- a/db/migrate/20140515163333_fix_duplicate_communication_channels.rb +++ b/db/migrate/20140515163333_fix_duplicate_communication_channels.rb @@ -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 diff --git a/db/migrate/20140522190519_add_reply_to_name_to_messages.rb b/db/migrate/20140522190519_add_reply_to_name_to_messages.rb index d761ae3ac1a..650f45de679 100644 --- a/db/migrate/20140522190519_add_reply_to_name_to_messages.rb +++ b/db/migrate/20140522190519_add_reply_to_name_to_messages.rb @@ -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