Skip to content

Commit

Permalink
Small fixes to CHANGELOG about constraints (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl authored and josevalim committed Apr 20, 2016
1 parent 398c242 commit 4f8dc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 146,8 @@ Finally, Ecto now allows putting existing records in changesets, and the proper
* [Migration] Support `:on_update` for `Ecto.Migrate.references`
* [Migration] Use pool of 1 connection for `mix ecto.migrate/rollback`
* [Mix] Automatically reenable migration and repository management tasks after execution
* [Postgres] Add migration and changeset support for PostgreSQL exclusion constraints. Example: `create constraint(:sizes, :cannot_overlap, exclude: ~s|gist (int4range("min", "max", '[]') WITH &&)|)` and `exclusion_constraint(changeset, :sizes, name: :cannot_overlap, message: "must not overlap")`
* [Postgres] Add migration and changeset support for PostgreSQL check constraints. Example: `create constraint(@table.name, "positive_price", check: "price > 0")` and `check_constraint(changeset, :description, name: :positive_price, message: "must be greater than zero")`
* [Postgres] Add migration and changeset support for PostgreSQL exclusion constraints. Example: `create constraint(:sizes, :cannot_overlap, exclude: ~s|gist (int4range("min", "max", '[]') WITH &&)|)` and `exclude_constraint(changeset, :sizes, name: :cannot_overlap, message: "must not overlap")`
* [Postgres] Add migration and changeset support for PostgreSQL check constraints. Example: `create constraint(:products, "positive_price", check: "price > 0")` and `check_constraint(changeset, :price, name: :positive_price, message: "must be greater than zero")`
* [Query] Allow the `:on` field to be specified with association joins
* [Query] Support expressions in map keys in `select` in queries. Example: `from p in Post, select: %{p.title => p.visitors}`
* [Query] Support map update syntax. Example: `from p in Post, select: %{p | title: "fixed"}`
Expand Down

0 comments on commit 4f8dc03

Please sign in to comment.