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