mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
delay the removal of auth token column from user table
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
class AddUserAuthTokens < ActiveRecord::Migration
|
||||
def down
|
||||
add_column :users, :auth_token, :string
|
||||
add_column :users, :auth_token_updated_at, :datetime
|
||||
execute <<SQL
|
||||
UPDATE users
|
||||
SET auth_token = user_auth_tokens.auth_token,
|
||||
@ -36,8 +34,5 @@ SQL
|
||||
FROM users
|
||||
WHERE auth_token_updated_at IS NOT NULL AND auth_token IS NOT NULL
|
||||
SQL
|
||||
|
||||
remove_column :users, :auth_token
|
||||
remove_column :users, :auth_token_updated_at
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user