Commit f89dbba3 authored by Andreas Brandl's avatar Andreas Brandl

Add comment to describe workaround context

parent 0bd00893
...@@ -18,6 +18,9 @@ module Ci ...@@ -18,6 +18,9 @@ module Ci
scope :scoped_build, -> { where('ci_builds.id=ci_build_needs.build_id') } scope :scoped_build, -> { where('ci_builds.id=ci_build_needs.build_id') }
scope :artifacts, -> { where(artifacts: true) } scope :artifacts, -> { where(artifacts: true) }
# TODO: Remove once build_id_convert_to_bigint is not an "ignored" column anymore (see .ignore_columns above)
# There is a database-side trigger to populate this column. This is unexpected in the context
# of cloning an instance, e.g. when retrying the job. Hence we exclude the ignored column explicitly here.
def attributes def attributes
super.except('build_id_convert_to_bigint') super.except('build_id_convert_to_bigint')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment