9 lines
194 B
Ruby
9 lines
194 B
Ruby
# 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
|