debian-mirror-gitlab/db/migrate/20140122114406_migrate_mr_diffs.rb
2016-06-16 23:09:34 +05:30

10 lines
289 B
Ruby

# 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