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
08f46526
Commit
08f46526
authored
Sep 26, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Mysql happy with rollback
parent
3c58dda6
Changes
2
Show 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 @
08f46526
...
@@ -15,6 +15,12 @@ class AddBoardFilterFields < ActiveRecord::Migration
...
@@ -15,6 +15,12 @@ class AddBoardFilterFields < ActiveRecord::Migration
end
end
def
down
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
end
end
spec/models/board_spec.rb
View file @
08f46526
...
@@ -9,7 +9,6 @@ describe Board do
...
@@ -9,7 +9,6 @@ describe Board do
it
{
is_expected
.
to
have_many
(
:board_filter_labels
)
}
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
(
:labels
).
through
(
:board_filter_labels
)
}
it
{
is_expected
.
to
have_many
(
:lists
).
order
(
list_type: :asc
,
position: :asc
).
dependent
(
:delete_all
)
}
it
{
is_expected
.
to
have_many
(
:lists
).
order
(
list_type: :asc
,
position: :asc
).
dependent
(
:delete_all
)
}
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