db: remove tag_aliases.post_count column.

This was only used in autocomplete, but it was unnecessary here because
we could already get the post count from the tags table.
This commit is contained in:
evazion
2019-11-17 14:14:17 -06:00
parent a2ea2a65a1
commit 64728c89d8
5 changed files with 12 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
class DropPostCountFromTagAliases < ActiveRecord::Migration[6.0]
def change
remove_index :tag_aliases, :post_count
remove_column :tag_aliases, :post_count, :integer, null: false, default: 0
end
end