Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectionVersion: Add option to define a schema prefix #4

Merged

Conversation

sascha-wolf
Copy link
Contributor

This PR adds the option to define a schema prefix for the ProjectionVersion
schema. It offers two ways of doing this:

  1. via the config
config :commanded_ecto_projections,
  schema_prefix: "example_schema_prefix"
  1. via the use clause
defmodule MyApp.ExampleProjector do
  use Commanded.Projections.Ecto,
    name: "example_projection",
    schema_prefix: "example_schema_prefix"
end

If none is provided is uses a nil prefix which is the default for Ecto.

@slashdotdash
Copy link
Member

Great, thanks for taking the time to make this change @zeeker. I'll merge, bump the mix version, and publish to Hex.

@slashdotdash slashdotdash merged commit 77bde1b into commanded:master Sep 15, 2017
@slashdotdash
Copy link
Member

Released as v0.5.0.

@sascha-wolf sascha-wolf deleted the feature/projection-version-schema branch September 29, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants