BigW Consortium Gitlab

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

  def self.down
    MergeRequestDiff.delete_all
  end
end