diff options
Diffstat (limited to 'db/migrate/20210818115613_add_index_project_id_on_dast_profile_schedule.rb')
-rw-r--r-- | db/migrate/20210818115613_add_index_project_id_on_dast_profile_schedule.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20210818115613_add_index_project_id_on_dast_profile_schedule.rb b/db/migrate/20210818115613_add_index_project_id_on_dast_profile_schedule.rb new file mode 100644 index 00000000000..392b335ab45 --- /dev/null +++ b/db/migrate/20210818115613_add_index_project_id_on_dast_profile_schedule.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +# See https://docs.gitlab.com/ee/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddIndexProjectIdOnDastProfileSchedule < ActiveRecord::Migration[6.1] + # We disable these cops here because changing this index is safe. The table does not + # have any data in it as it's behind a feature flag. + # rubocop: disable Migration/AddIndex + def change + add_index :dast_profile_schedules, :project_id + end +end |