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
6e901ba7
Commit
6e901ba7
authored
Sep 26, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove milestone foreign-key on boards
parent
8951898d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
db/migrate/20170926202731_add_milestone_foreign_key_to_boards.rb
...ate/20170926202731_add_milestone_foreign_key_to_boards.rb
+0
-15
db/schema.rb
db/schema.rb
+0
-1
No files found.
db/migrate/20170926202731_add_milestone_foreign_key_to_boards.rb
deleted
100644 → 0
View file @
8951898d
class
AddMilestoneForeignKeyToBoards
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_foreign_key
:boards
,
:milestones
,
column: :milestone_id
,
on_delete: :nullify
end
def
down
remove_foreign_key
:boards
,
column: :milestone_id
end
end
db/schema.rb
View file @
6e901ba7
...
...
@@ -2063,7 +2063,6 @@ ActiveRecord::Schema.define(version: 20170926203418) do
add_foreign_key
"approver_groups"
,
"namespaces"
,
column:
"group_id"
,
on_delete: :cascade
add_foreign_key
"board_filter_labels"
,
"boards"
,
name:
"fk_53e44f3a07"
,
on_delete: :cascade
add_foreign_key
"board_filter_labels"
,
"labels"
,
name:
"fk_91e18fdcee"
,
on_delete: :cascade
add_foreign_key
"boards"
,
"milestones"
,
name:
"fk_b93160e8ee"
,
on_delete: :nullify
add_foreign_key
"boards"
,
"namespaces"
,
column:
"group_id"
,
name:
"fk_1e9a074a35"
,
on_delete: :cascade
add_foreign_key
"boards"
,
"projects"
,
name:
"fk_f15266b5f9"
,
on_delete: :cascade
add_foreign_key
"boards"
,
"users"
,
column:
"assignee_id"
,
name:
"fk_2a3450e77c"
,
on_delete: :nullify
...
...
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