summaryrefslogtreecommitdiff
path: root/db/migrate/20210809194250_rename_tables_ci_build_trace_section.rb
blob: 76308e2ea8ee7fe96fa38a7323f016add1c870e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RenameTablesCiBuildTraceSection < ActiveRecord::Migration[6.1]
  DOWNTIME = false

  def change
    # Shorten deprecated to dep to avoid 'Index name..too long'
    rename_table(:ci_build_trace_sections, :dep_ci_build_trace_sections)
    rename_table(:ci_build_trace_section_names, :dep_ci_build_trace_section_names)
  end
end