josevalim
Ecto 2.2.0-rc.0 released
See the release notes: https://github.com/elixir-ecto/ecto/releases/tag/2.2.0-rc.0
To try it in your projects: {:ecto, "~> 2.2.0-rc", override: true}.
Most Liked
sergio
I love this change the most:
Ecto now will also warn at compile time of invalid relationships, such as a belongs_to that points to a schema that does not exist.
Thanks for the hard work!
axelson
[Ecto.Migration] Add reversible execute/2 to migrations
Blew my mind. Is Ecto able to automatically determine if the arbitrary SQL is reversible? Or does it just skip that execution on rollback?
Edit: nevermind. I see that it is execute/2, the second argument is what you execute on rollback. Makes sense.
OvermindDL1
Hah, I was just typing up a post!
My post was:
Just wanted to note that an awesome feature has been added to Ecto 2.2.0-rc.0 that was just released. select_merge (and select(blah, merge(bloop)).
This is a feature that has been wanted a few times here and so just want to point it out (I’ll be rewriting and simplifying a lot of my complex queries soon!). 
See the docs for it at: https://hexdocs.pm/ecto/2.2.0-rc.0/Ecto.Query.html#select_merge/3
josevalim
josevalim
Do a hard refresh on the docs page.
And I would love some feedback on the select_merge feature.







