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

20130324203535_add_type_value_for_snippets.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6e910fd74c7b35bacca139a02ffa1270fab1dd63 (plain)
1
2
3
4
5
6
7
8
9
# rubocop:disable all
class AddTypeValueForSnippets < ActiveRecord::Migration
  def up
    Snippet.where("project_id IS NOT NULL").update_all(type: 'ProjectSnippet')
  end

  def down
  end
end