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: 49e787d9a9a598ecb877d5e6e0fb97fadcc0c3e8 (plain)
1
2
3
4
5
6
7
8
9
class DisallowBlankLineCodeOnNote < ActiveRecord::Migration
  def up
    execute("UPDATE notes SET line_code = NULL WHERE line_code = ''")
  end

  def down
    # noop
  end
end