debian-mirror-gitlab/db/migrate/20181212104941_backfill_releases_name_with_tag_name.rb
2019-02-15 15:39:39 +05:30

18 lines
316 B
Ruby

# frozen_string_literal: true
class BackfillReleasesNameWithTagName < ActiveRecord::Migration[5.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
update_column_in_batches(:releases, :name, Release.arel_table[:tag])
end
def down
# no-op
end
end