diff options
Diffstat (limited to 'db/migrate/20200313101649_fill_ghost_user_type.rb')
-rw-r--r-- | db/migrate/20200313101649_fill_ghost_user_type.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/db/migrate/20200313101649_fill_ghost_user_type.rb b/db/migrate/20200313101649_fill_ghost_user_type.rb deleted file mode 100644 index fa0c02e5413..00000000000 --- a/db/migrate/20200313101649_fill_ghost_user_type.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -class FillGhostUserType < ActiveRecord::Migration[6.0] - DOWNTIME = false - - def up - execute('UPDATE users SET user_type = 5 WHERE ghost IS TRUE AND user_type IS NULL') - end - - def down - execute('UPDATE users SET user_type = NULL WHERE ghost IS TRUE AND user_type IS NOT NULL') - end -end |