gitlab-org--gitlab-foss/db/migrate/20210422181809_add_project_to_timelogs.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
351 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddProjectToTimelogs < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :timelogs, :project_id, :integer
end
end
def down
with_lock_retries do
remove_column :timelogs, :project_id
end
end
end