db: remove unused columns on posts table.

is_note_locked, is_rating_locked, and is_status_locked have been unused
since 126046cb6.

tag_index has been unused since 37a8dc5db.

fav_string has been unused since 165339236.

pool_string has been unused since 7d503f088.
This commit is contained in:
evazion
2022-01-06 11:37:48 -06:00
parent 080dbf5a8c
commit e8c52432a4
2 changed files with 12 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
class DropUnusedPostColumns < ActiveRecord::Migration[6.1]
def change
remove_column :posts, :is_note_locked, :boolean, default: false, null: false
remove_column :posts, :is_rating_locked, :boolean, default: false, null: false
remove_column :posts, :is_status_locked, :boolean, default: false, null: false
remove_column :posts, :tag_index, :tsvector
remove_column :posts, :fav_string, :text, default: "", null: false
remove_column :posts, :pool_string, :text, default: "", null: false
end
end