gitlab-org--gitlab-foss/db/migrate/20160307221555_disallow_bla...

11 lines
200 B
Ruby

# rubocop:disable all
class DisallowBlankLineCodeOnNote < ActiveRecord::Migration
def up
execute("UPDATE notes SET line_code = NULL WHERE line_code = ''")
end
def down
# noop
end
end