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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8db002a9
Commit
8db002a9
authored
Oct 10, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change migration to add only weight colum
parent
84d866ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
21 deletions
+9
-21
db/migrate/20170926200545_add_board_filter_fields.rb
db/migrate/20170926200545_add_board_filter_fields.rb
+0
-21
db/migrate/20170926200545_add_weight_to_boards.rb
db/migrate/20170926200545_add_weight_to_boards.rb
+9
-0
No files found.
db/migrate/20170926200545_add_board_filter_fields.rb
deleted
100644 → 0
View file @
84d866ba
class
AddBoardFilterFields
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column
:boards
,
:weight
,
:integer
,
index:
true
add_reference
:boards
,
:assignee
,
index:
true
add_concurrent_foreign_key
:boards
,
:users
,
column: :assignee_id
,
on_delete: :nullify
end
def
down
remove_column
:boards
,
:weight
remove_foreign_key
:boards
,
column: :assignee_id
remove_reference
:boards
,
:assignee
end
end
db/migrate/20170926200545_add_weight_to_boards.rb
0 → 100644
View file @
8db002a9
class
AddWeightToBoards
<
ActiveRecord
::
Migration
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_column
:boards
,
:weight
,
:integer
,
index:
true
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