2019-01-03 12:48:30 +05:30
|
|
|
class CleanupUsersRssTokenRename < ActiveRecord::Migration
|
2018-11-08 19:23:39 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
cleanup_concurrent_column_rename :users, :rss_token, :feed_token
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-11-18 11:00:15 +05:30
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2018-11-08 19:23:39 +05:30
|
|
|
rename_column_concurrently :users, :feed_token, :rss_token
|
|
|
|
end
|
|
|
|
end
|