Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20140122114406_migrate_mr_diffs.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 429aeb2293f3a82002c50d2d92d94d97bbbcb977 (plain)
1
2
3
4
5
6
7
8
9
10
# rubocop:disable all
class MigrateMrDiffs < ActiveRecord::Migration
  def self.up
    execute "INSERT INTO merge_request_diffs ( merge_request_id, st_commits, st_diffs ) SELECT id, st_commits, st_diffs FROM merge_requests"
  end

  def self.down
    MergeRequestDiff.delete_all
  end
end