gitlab-org--gitlab-foss/db/migrate/20130324203535_add_type_val...

9 lines
172 B
Ruby
Raw Normal View History

2013-03-24 20:39:38 +00:00
class AddTypeValueForSnippets < ActiveRecord::Migration
def up
Snippet.where("project_id IS NOT NULL").update_all(type: 'ProjectSnippet')
end
def down
end
end