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
Boxiang Sun
gitlab-ce
Commits
a324960d
Commit
a324960d
authored
Jun 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4407 from jackbot/master
Database seeding failing
parents
b8eee565
905eb176
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
db/fixtures/development/09_issues.rb
db/fixtures/development/09_issues.rb
+1
-1
db/fixtures/development/10_merge_requests.rb
db/fixtures/development/10_merge_requests.rb
+2
-1
No files found.
db/fixtures/development/09_issues.rb
View file @
a324960d
...
@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
...
@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
next
unless
user
next
unless
user
user_id
=
user
.
id
user_id
=
user
.
id
IssueObserver
.
current_user
=
user
Thread
.
current
[
:current_user
]
=
user
Issue
.
seed
(
:id
,
[{
Issue
.
seed
(
:id
,
[{
id:
i
,
id:
i
,
...
...
db/fixtures/development/10_merge_requests.rb
View file @
a324960d
...
@@ -17,7 +17,8 @@ Gitlab::Seeder.quiet do
...
@@ -17,7 +17,8 @@ Gitlab::Seeder.quiet do
next
if
branches
.
uniq
.
size
<
2
next
if
branches
.
uniq
.
size
<
2
user_id
=
user
.
id
user_id
=
user
.
id
MergeRequestObserver
.
current_user
=
user
Thread
.
current
[
:current_user
]
=
user
MergeRequest
.
seed
(
:id
,
[{
MergeRequest
.
seed
(
:id
,
[{
id:
i
,
id:
i
,
source_branch:
branches
.
first
,
source_branch:
branches
.
first
,
...
...
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