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