98bb435f42
Migrations shouldn't fail RuboCop checks - especially lint checks, such as the nested method check. To avoid changing code in existing migrations, add the magic comment to the top of each of them to skip that file.
10 lines
289 B
Ruby
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
|