Commit b1358639c8943a1e3a4e46e08a429a0f4a29ecf1
Committed by
Dmitriy Zaporozhets
1 parent
f834385a
Exists in
master
and in
4 other branches
Update 20130419190306_allow_merges_for_forks.rb
Postgress db migrate fails.(5.4=>6.0)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
db/migrate/20130419190306_allow_merges_for_forks.rb
1 | 1 | class AllowMergesForForks < ActiveRecord::Migration |
2 | 2 | def self.up |
3 | - add_column :merge_requests, :target_project_id, :integer, :null => false | |
3 | + add_column :merge_requests, :target_project_id, :integer, :null => true | |
4 | 4 | MergeRequest.update_all("target_project_id = project_id") |
5 | + change_column :merge_requests, :target_project_id, :integer, :null => false | |
5 | 6 | rename_column :merge_requests, :project_id, :source_project_id |
6 | 7 | end |
7 | 8 | ... | ... |