user name changes: remove unused reason, status fields.
Remove all infrastructure around approving or rejecting user name changes. Name changes haven't been moderated for several years. * Remove status, approver_id, change_reason, and rejection_reason fields. * Remove approve and reject controller actions.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class RemoveReasonAndStatusFromUserNameChangeRequests < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_column :user_name_change_requests, :change_reason, :text
|
||||
remove_column :user_name_change_requests, :rejection_reason, :text
|
||||
remove_column :user_name_change_requests, :approver_id, :integer
|
||||
remove_column :user_name_change_requests, :status, :string, null: false, default: "pending"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user