Disable rubocop for down method

This commit is contained in:
Lin Jen-Shin 2017-03-14 19:56:37 +08:00
parent 0b20d850cb
commit c9fbbb3ae2

View file

@ -16,6 +16,7 @@ class MigrateProjectStatistics < ActiveRecord::Migration
remove_column :projects, :commit_count
end
# rubocop: disable Migration/AddColumn
def down
add_column :projects, :repository_size, :float, default: 0.0
add_column :projects, :commit_count, :integer, default: 0