debian-mirror-gitlab/db/migrate/20200429181335_add_default_value_for_file_store_to_lfs_objects.rb

20 lines
393 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
class AddDefaultValueForFileStoreToLfsObjects < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
change_column_default :lfs_objects, :file_store, 1
end
end
def down
with_lock_retries do
change_column_default :lfs_objects, :file_store, nil
end
end
end