Added migration to reset existing relative_position for issues
This commit is contained in:
parent
96fe1856da
commit
67686e38fd
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
|
||||
# for more information on how to write migrations for GitLab.
|
||||
|
||||
class ResetRelativePositionForIssue < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
DOWNTIME = false
|
||||
|
||||
def up
|
||||
execute <<-EOS
|
||||
UPDATE issues SET relative_position = NULL
|
||||
WHERE issues.relative_position IS NOT NULL;
|
||||
EOS
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue