gitlab-org--gitlab-foss/db/migrate/20160508221410_set_type_on_...

7 lines
185 B
Ruby
Raw Normal View History

# rubocop:disable all
2016-05-10 22:41:46 +00:00
class SetTypeOnLegacyDiffNotes < ActiveRecord::Migration
def change
execute "UPDATE notes SET type = 'LegacyDiffNote' WHERE line_code IS NOT NULL"
end
end