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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
7058258a
Commit
7058258a
authored
Apr 21, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed db_schema & reordered rake tasks
parent
08994f3f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
db/schema.rb
db/schema.rb
+3
-2
lib/tasks/gitlab/enable_automerge.rake
lib/tasks/gitlab/enable_automerge.rake
+12
-0
lib/tasks/gitlab/setup.rake
lib/tasks/gitlab/setup.rake
+1
-1
lib/tasks/gitlab_enable_automerge.rake
lib/tasks/gitlab_enable_automerge.rake
+0
-9
No files found.
db/schema.rb
View file @
7058258a
...
...
@@ -11,7 +11,8 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
20120329170745
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
20120413135904
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"target_type"
t
.
integer
"target_id"
...
...
@@ -64,7 +65,7 @@ ActiveRecord::Schema.define(:version => 20120329170745) do
t
.
text
"st_commits"
,
:limit
=>
2147483647
t
.
text
"st_diffs"
,
:limit
=>
2147483647
t
.
boolean
"merged"
,
:default
=>
false
,
:null
=>
false
t
.
boolean
"auto_merge"
,
:default
=>
true
,
:null
=>
false
t
.
integer
"state"
,
:default
=>
1
,
:null
=>
false
end
add_index
"merge_requests"
,
[
"project_id"
],
:name
=>
"index_merge_requests_on_project_id"
...
...
lib/tasks/gitlab/enable_automerge.rake
0 → 100644
View file @
7058258a
namespace
:gitlab
do
namespace
:app
do
desc
"GITLAB | Enable auto merge"
task
:enable_automerge
=>
:environment
do
Gitlabhq
::
GitHost
.
system
.
new
.
configure
do
|
git
|
git
.
admin_all_repo
end
puts
"Done!"
.
green
end
end
end
lib/tasks/gitlab/setup.rake
View file @
7058258a
namespace
:gitlab
do
namespace
:app
do
desc
"GITLAB | Setup production application"
task
:setup
=>
[
'db:setup'
,
'db:seed_fu'
]
task
:setup
=>
[
'db:setup'
,
'db:seed_fu'
,
'gitlab:app:enable_automerge'
]
end
end
lib/tasks/gitlab_enable_automerge.rake
deleted
100644 → 0
View file @
08994f3f
desc
"Give gitlab user full access to every repo"
task
:gitlab_enable_automerge
=>
:environment
do
Gitlabhq
::
GitHost
.
system
.
new
.
configure
do
|
git
|
git
.
admin_all_repo
end
puts
"Done!"
.
green
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