Commit b1358639 authored by dsekretov's avatar dsekretov Committed by Dmitriy Zaporozhets

Update 20130419190306_allow_merges_for_forks.rb

Postgress db migrate fails.(5.4=>6.0)
parent f834385a
class AllowMergesForForks < ActiveRecord::Migration class AllowMergesForForks < ActiveRecord::Migration
def self.up 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") 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 rename_column :merge_requests, :project_id, :source_project_id
end 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