Gab-Social/db/migrate/20201203211403_add_unread_count_to_chat_conversation_accounts.rb
mgabdev 137a36b810 Progress with DMs
Progress with DMs
2020-12-03 17:13:11 -05:00

11 lines
315 B
Ruby

class AddUnreadCountToChatConversationAccounts < ActiveRecord::Migration[5.2]
def up
add_column :chat_conversation_accounts, :unread_count, :bigint
change_column_default :chat_conversation_accounts, :unread_count, 0
end
def down
remove_column :chat_conversation_accounts, :unread_count
end
end