db: drop unused columns from users table.

Note that the password_hash column was replaced by bcrypt_password_hash
in 2013, but the old password_hash column was never dropped.
This commit is contained in:
evazion
2019-11-16 19:34:30 -06:00
parent 90713ef94c
commit 364ecfe68f
6 changed files with 13 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
class DropUnusedColumnsFromUsers < ActiveRecord::Migration[6.0]
def change
execute "set statement_timeout = 0"
remove_column :users, :base_upload_limit, :integer, null: false, default: 10
remove_column :users, :recent_tags, :string
remove_column :users, :email_verification_key, :string
remove_column :users, :password_hash, :string, null: false
end
end