BigW Consortium Gitlab

20140122114406_migrate_mr_diffs.rb 289 Bytes
Newer Older
1
# rubocop:disable all
2 3
class MigrateMrDiffs < ActiveRecord::Migration
  def self.up
4
    execute "INSERT INTO merge_request_diffs ( merge_request_id, st_commits, st_diffs ) SELECT id, st_commits, st_diffs FROM merge_requests"
5 6 7 8 9 10
  end

  def self.down
    MergeRequestDiff.delete_all
  end
end