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: 8c05dd2cc717946e6352968e219cd121e458e439 (plain)
1
2
3
4
5
6
7
8
class AddTypeValueForSnippets < ActiveRecord::Migration
  def up
    Snippet.where("project_id IS NOT NULL").update_all(type: 'ProjectSnippet')
  end

  def down
  end
end