mirror of https://github.com/mastodon/mastodon
Change `AccountRelationshipSeveranceEvent` model to store lost followers and following counts separately (#29714)
parent
34f293475e
commit
dfa43707eb
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddFollowersAndFollowingCountsToAccountRelationshipSeveranceEvents < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_column :account_relationship_severance_events, :followers_count, :integer, default: 0, null: false
|
||||
add_column :account_relationship_severance_events, :following_count, :integer, default: 0, null: false
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveRelationshipsCountFromAccountRelationshipSeveranceEvents < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
safety_assured { remove_column :account_relationship_severance_events, :relationships_count, :integer, default: 0, null: false }
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue