Fixed db_schema & reordered rake tasks
This commit is contained in:
parent
08994f3f60
commit
7058258a2a
4 changed files with 16 additions and 12 deletions
|
@ -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"
|
||||
|
|
12
lib/tasks/gitlab/enable_automerge.rake
Normal file
12
lib/tasks/gitlab/enable_automerge.rake
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
|
@ -1,7 +1,7 @@
|
|||
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
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
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
|
Loading…
Reference in a new issue