Commit 89dbf659 authored by Max Woolf's avatar Max Woolf Committed by Luke Duncalfe

Delete framework column from project_compliance_framework_settings

This column was ignored in 13.5 so is now safe to remove.

https://gitlab.com/gitlab-org/gitlab/-/issues/335079

Changelog: removed
parent fb9f861a
# frozen_string_literal: true
class RemoveFrameworkColumnFromComplianceManagementFrameworks < ActiveRecord::Migration[6.1]
def change
remove_column :project_compliance_framework_settings, :framework, :smallint
end
end
0fffffc44c32a936760424541e183b1a41938750d4e10da9dd76c2a09094a07b
\ No newline at end of file
......@@ -16697,7 +16697,6 @@ ALTER SEQUENCE project_ci_cd_settings_id_seq OWNED BY project_ci_cd_settings.id;
CREATE TABLE project_compliance_framework_settings (
project_id bigint NOT NULL,
framework smallint,
framework_id bigint,
CONSTRAINT check_d348de9e2d CHECK ((framework_id IS NOT NULL))
);
......@@ -25,6 +25,6 @@ RSpec.describe Gitlab::SearchResults do
end
def search
subject.objects('projects').map { |project| project.compliance_framework_setting.framework }
subject.objects('projects').map { |project| project.compliance_framework_setting }
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