debian-mirror-gitlab/db/migrate/20160307221555_disallow_blank_line_code_on_note.rb

11 lines
200 B
Ruby
Raw Normal View History

# rubocop:disable all
2016-06-02 11:05:42 +05:30
class DisallowBlankLineCodeOnNote < ActiveRecord::Migration
def up
execute("UPDATE notes SET line_code = NULL WHERE line_code = ''")
end
def down
# noop
end
end