Skip to content

Update Phoenix generator to support Ecto+Mongo out of the box #31

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

Closed
josevalim opened this issue Jul 19, 2015 · 2 comments
Closed

Update Phoenix generator to support Ecto+Mongo out of the box #31

josevalim opened this issue Jul 19, 2015 · 2 comments

Comments

@josevalim
Copy link
Contributor

No description provided.

@michalmuskala
Copy link
Collaborator

I think we need to release a hex package first so there is no problem with versions.

@michalmuskala
Copy link
Collaborator

I was looking into this and it seems this will require quite a lot of changes to the phoenix.new generator:

  • We need a different config/test.exs file (no Ecto.Adapters.SQL.Sandbox),
  • change test helpers to use Mongo.Ecto.truncate/1 instead of Ecto.Adapters.SQL.restart_test_transaction/1
  • change Web.model to override default @primary_key.
    There may be other things.

michalmuskala added a commit to michalmuskala/phoenix that referenced this issue Aug 28, 2015
michalmuskala added a commit to michalmuskala/phoenix that referenced this issue Aug 28, 2015
wsmoak pushed a commit to wsmoak/phoenix that referenced this issue Aug 30, 2015
michalmuskala added a commit to michalmuskala/phoenix that referenced this issue Sep 1, 2015
shankardevy pushed a commit to shankardevy/petal that referenced this issue Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants