debian-mirror-gitlab/db/migrate/20200513234502_fill_file_store_lfs_objects.rb
2020-05-24 23:13:21 +05:30

20 lines
366 B
Ruby

# frozen_string_literal: true
class FillFileStoreLfsObjects < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
update_column_in_batches(:lfs_objects, :file_store, 1) do |table, query|
query.where(table[:file_store].eq(nil))
end
end
def down
# no-op
end
end