Skip to content
Snippets Groups Projects
Commit 8c4554bd authored by dsekretov's avatar dsekretov
Browse files

Update 20130419190306_allow_merges_for_forks.rb

Postgress db migrate fails.(5.4=>6.0)
parent 86c97373
No related branches found
No related tags found
2 merge requests!4948CentOS 6.4 install GitLab 6 0 stable ssh Auth fail,!4862Update 20130419190306_allow_merges_for_forks.rb
class AllowMergesForForks < ActiveRecord::Migration
def self.up
add_column :merge_requests, :target_project_id, :integer, :null => false
add_column :merge_requests, :target_project_id, :integer, :null => true
MergeRequest.update_all("target_project_id = project_id")
change_column :merge_requests, :target_project_id, :integer, :null => false
rename_column :merge_requests, :project_id, :source_project_id
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment