Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
1497db75
Commit
1497db75
authored
Mar 07, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AddRelativePositionToIssues migration
parent
539a5235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
db/migrate/20170131221752_add_relative_position_to_issues.rb
db/migrate/20170131221752_add_relative_position_to_issues.rb
+8
-2
No files found.
db/migrate/20170131221752_add_relative_position_to_issues.rb
View file @
1497db75
...
@@ -21,11 +21,17 @@ class AddRelativePositionToIssues < ActiveRecord::Migration
...
@@ -21,11 +21,17 @@ class AddRelativePositionToIssues < ActiveRecord::Migration
#
#
# To disable transactions uncomment the following line and remove these
# To disable transactions uncomment the following line and remove these
# comments:
# comments:
#
disable_ddl_transaction!
disable_ddl_transaction!
def
change
def
up
add_column
:issues
,
:relative_position
,
:integer
add_column
:issues
,
:relative_position
,
:integer
add_concurrent_index
:issues
,
:relative_position
add_concurrent_index
:issues
,
:relative_position
end
end
def
down
remove_column
:issues
,
:relative_position
remove_index
:issues
,
:relative_position
if
index_exists?
:issues
,
:relative_position
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment