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
8951898d
Commit
8951898d
authored
Sep 26, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Mysql happy with rollback
parent
06cb03b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
db/migrate/20170926200545_add_board_filter_fields.rb
db/migrate/20170926200545_add_board_filter_fields.rb
+7
-1
spec/models/board_spec.rb
spec/models/board_spec.rb
+0
-1
No files found.
db/migrate/20170926200545_add_board_filter_fields.rb
View file @
8951898d
...
...
@@ -15,6 +15,12 @@ class AddBoardFilterFields < ActiveRecord::Migration
end
def
down
remove_columns
:boards
,
:weight
,
:author_id
,
:assignee_id
remove_column
:boards
,
:weight
remove_foreign_key
:boards
,
column: :author_id
remove_reference
:boards
,
:author
remove_foreign_key
:boards
,
column: :assignee_id
remove_reference
:boards
,
:assignee
end
end
spec/models/board_spec.rb
View file @
8951898d
...
...
@@ -9,7 +9,6 @@ describe Board do
it
{
is_expected
.
to
have_many
(
:board_filter_labels
)
}
it
{
is_expected
.
to
have_many
(
:labels
).
through
(
:board_filter_labels
)
}
it
{
is_expected
.
to
have_many
(
:lists
).
order
(
list_type: :asc
,
position: :asc
).
dependent
(
:delete_all
)
}
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