about summary refs log tree commit diff
path: root/db/migrate/20190522060455_add_unlisted_to_tags.rb
blob: 3c47af6730e27530173f6cc9aff649b1f04c34b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
class AddUnlistedToTags < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!
  def change
    safety_assured {
      add_column :tags, :unlisted, :boolean, default: false, null: false
      add_index :tags, :unlisted, where: :unlisted, algorithm: :concurrently
    }
  end
end