18 lines
355 B
Ruby
18 lines
355 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class SprintRenameStateToStateEnum < ActiveRecord::Migration[6.0]
|
||
|
include Gitlab::Database::MigrationHelpers
|
||
|
|
||
|
DOWNTIME = false
|
||
|
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def up
|
||
|
rename_column_concurrently :sprints, :state, :state_enum
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
undo_rename_column_concurrently :sprints, :state, :state_enum
|
||
|
end
|
||
|
end
|