Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160307221555_disallow_blank_line_code_on_note.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 10f2b8cc56a8dcd8553f3f381767316bb95d90c7 (plain)
1
2
3
4
5
6
7
8
9
10
# 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