DEV: remove legacy code

This code is a no-op on all sites, even though it looks rather dangerous
this migration has long run prior to people trying exploit it.

That said ... hygiene here ... is not good.

Remove this legacy, we do not want it, even in historical migrations.
This commit is contained in:
Sam Saffron 2020-10-08 11:24:47 +11:00 committed by Alan Guo Xiang Tan
parent 2607bb602e
commit cd3254e170
1 changed files with 0 additions and 3 deletions

View File

@ -4,8 +4,5 @@ class AddAdminFlagToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :admin, :boolean, default: false, null: false
add_column :users, :moderator, :boolean, default: false, null: false
# Make all of us admins
execute "UPDATE users SET admin = TRUE where lower(username) in ('eviltrout', 'codinghorror', 'sam', 'hanzo')"
end
end