diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130419190306_allow_merges_for_forks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20130419190306_allow_merges_for_forks.rb b/db/migrate/20130419190306_allow_merges_for_forks.rb index 92736543971..13135cbafcf 100644 --- a/db/migrate/20130419190306_allow_merges_for_forks.rb +++ b/db/migrate/20130419190306_allow_merges_for_forks.rb @@ -2,7 +2,7 @@ class AllowMergesForForks < ActiveRecord::Migration def self.up add_column :merge_requests, :target_project_id, :integer, :null => false - MergeRequest.connection.execute("update merge_requests set target_project_id=project_id") + MergeRequest.update_all("target_project_id = project_id") rename_column :merge_requests, :project_id, :source_project_id end |