mastodon/db/migrate/20190523010615_add_chat_to_...

10 lines
266 B
Ruby

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