2019-07-19 23:06:32 +01:00
|
|
|
class AddUnreadCountToGroupAccounts < ActiveRecord::Migration[5.2]
|
2019-07-22 00:50:01 +01:00
|
|
|
def up
|
|
|
|
add_column :group_accounts, :unread_count, :integer
|
|
|
|
change_column_default :group_accounts, :unread_count, 0
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :group_accounts, :unread_count
|
2019-07-19 23:06:32 +01:00
|
|
|
end
|
|
|
|
end
|