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
|