about summary refs log tree commit diff
path: root/db/migrate/20190522060919_make_private_tags_unlisted.rb
blob: 92f610d57ddc1597d813fa8e99528334cd3c3881 (plain) (blame)
1
2
3
4
5
class MakePrivateTagsUnlisted < ActiveRecord::Migration[5.2]
  def up
    Tag.where(private: true).in_batches.update_all(unlisted: true)
  end
end