add columns for media comments so the user can be the context
also fixed some migrations Change-Id: I8067f9d51328baaf566d32ea054f77bcead185dc Reviewed-on: https://gerrit.instructure.com/5094 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Zach Wily <zach@instructure.com>
This commit is contained in:
parent
0cc2f48b32
commit
f5c5292b3f
|
@ -4,6 +4,6 @@ class WebConferenceSettings < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :web_conferences, :settings
|
||||
remove_column :web_conferences, :settings
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,6 +4,6 @@ class ConversationTweaks < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :conversation_participants, :last_authored_at
|
||||
remove_column :conversation_participants, :last_authored_at
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,9 +7,9 @@ class MessageAttachmentsAndMediaObjects < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :conversations, :has_attachments
|
||||
drop_column :conversations, :has_media_objects
|
||||
drop_column :conversation_participants, :has_attachments
|
||||
drop_column :conversation_participants, :has_media_objects
|
||||
remove_column :conversations, :has_attachments
|
||||
remove_column :conversations, :has_media_objects
|
||||
remove_column :conversation_participants, :has_attachments
|
||||
remove_column :conversation_participants, :has_media_objects
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,6 +4,6 @@ class MessageForwards < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :conversation_messages, :forwarded_message_ids
|
||||
remove_column :conversation_messages, :forwarded_message_ids
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,6 +14,6 @@ class UnreadCounts < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :users, :unread_conversations_count
|
||||
remove_column :users, :unread_conversations_count
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,6 +4,6 @@ class LabelConversations < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
drop_column :conversation_participants, :label
|
||||
remove_column :conversation_participants, :label
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
class NewInboxMediaComments < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :conversation_messages, :media_comment_id, :string
|
||||
add_column :conversation_messages, :media_comment_type, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :conversation_messages, :media_comment_id
|
||||
remove_column :conversation_messages, :media_comment_type
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue