View Source Confeature.Migration (Confeature v0.1.2)

Defines an Ecto migration to create the necesary table to store your feature settings.

Look at the README for detailed setup instructions.

Ecto Prefixes and SQL Schemas

Confeature has been tested with Ecto multi-tenancy and should work in all scenarios, since it just sends basic Ecto queries that should be decorated by your Ecto repository default configuration.

If migrations fail, your Repo probably lacks the following callback:

defmodule MyApp.MyRepo do
  use Ecto.Repo, ...

  def default_options(_operation) do
    [prefix: "your_sql_prefix"]
  end
end

Summary

Functions

Drops the Confeature table. You can set the following options

Creates Confeature table. You can set the following options

Functions

Drops the Confeature table. You can set the following options:

  • table_name: lets you specify the table name. Default is features.

Creates Confeature table. You can set the following options:

  • table_name: lets you specify the table name. Default is features.