db: remove unused columns on posts table.
is_note_locked, is_rating_locked, and is_status_locked have been unused since126046cb6. tag_index has been unused since37a8dc5db. fav_string has been unused since165339236. pool_string has been unused since7d503f088.
This commit is contained in:
10
db/migrate/20220106172910_drop_unused_post_columns.rb
Normal file
10
db/migrate/20220106172910_drop_unused_post_columns.rb
Normal 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
|
||||
Reference in New Issue
Block a user