debian-mirror-gitlab/db/migrate/20210422181809_add_project_to_timelogs.rb
2021-06-08 01:23:25 +05:30

19 lines
351 B
Ruby

# 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