blob: f429303ab835fdcd75102b47e841225833d70608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class RemoveNotNullContraintOnTitleFromSprints < Gitlab::Database::Migration[1.0]
enable_lock_retries!
def up
change_column_null :sprints, :title, true
end
def down
execute <<~SQL
UPDATE sprints SET title = id WHERE title IS NULL
SQL
change_column_null :sprints, :title, false
end
end
|