# `CommBus.Storage.Migrations`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Helper functions for adding CommBus tables to your Ecto migrations.

## Usage

    defmodule MyApp.Repo.Migrations.AddCommBusTables do
      use Ecto.Migration
      import CommBus.Storage.Migrations

      def change do
        create_comm_bus_tables()
      end
    end

# `create_comm_bus_tables`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})
*macro* 

Creates the `comm_bus_entries` and `comm_bus_conversations` tables with all
required columns, indexes, and timestamps. Call from an Ecto migration's
`change/0` callback.

# `drop_comm_bus_tables`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})
*macro* 

Drops the `comm_bus_conversations` and `comm_bus_entries` tables.
Call from an Ecto migration's `change/0` callback to reverse
`create_comm_bus_tables/0`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
