2018-12-23 12:14:25 +05:30
|
|
|
class CleanupUsersRssTokenRename < ActiveRecord::Migration[4.2]
|
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
|