Commit b1bb3701 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4862 from dsekretov/patch-1

Update 20130419190306_allow_merges_for_forks.rb
parents 1ac6078b 8c4554bd
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