Commit 7058258a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed db_schema & reordered rake tasks

parent 08994f3f
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
# #
# It's strongly recommended to check this file into your version control system. # 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| create_table "events", :force => true do |t|
t.string "target_type" t.string "target_type"
t.integer "target_id" t.integer "target_id"
...@@ -64,7 +65,7 @@ ActiveRecord::Schema.define(:version => 20120329170745) do ...@@ -64,7 +65,7 @@ ActiveRecord::Schema.define(:version => 20120329170745) do
t.text "st_commits", :limit => 2147483647 t.text "st_commits", :limit => 2147483647
t.text "st_diffs", :limit => 2147483647 t.text "st_diffs", :limit => 2147483647
t.boolean "merged", :default => false, :null => false t.boolean "merged", :default => false, :null => false
t.boolean "auto_merge", :default => true, :null => false t.integer "state", :default => 1, :null => false
end end
add_index "merge_requests", ["project_id"], :name => "index_merge_requests_on_project_id" add_index "merge_requests", ["project_id"], :name => "index_merge_requests_on_project_id"
......
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
namespace :gitlab do namespace :gitlab do
namespace :app do namespace :app do
desc "GITLAB | Setup production application" 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
end end
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment