Permalink
Browse files

Fix a couple places in the docs where exclusion_constraint() is used …

…instead of exclude().
  • Loading branch information...
1 parent ec9fe80 commit e3a47cb83fa17729485f8736a8a159656b724261 @chanks chanks committed Jan 12, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 doc/release_notes/3.37.0.txt
  2. +2 −2 lib/sequel/adapters/shared/postgres.rb
@@ -162,7 +162,7 @@
DB.create_table(:t) do
...
- exclusion_constraint([[:col1, '&&'], [:col2, '=']])
+ exclude([[:col1, '&&'], [:col2, '=']])
# EXCLUDE USING gist (col1 WITH &&, col2 WITH =)
end
@@ -53,14 +53,14 @@ class << self
end
class CreateTableGenerator < Sequel::Schema::Generator
- # Add an exclusion constraint when creating the table. elements should be
+ # Add an exclusion constraint when creating the table. Elements should be
# an array of 2 element arrays, with the first element being the column or
# expression the exclusion constraint is applied to, and the second element
# being the operator to use for the column/expression to check for exclusion.
#
# Example:
#
- # exclusion_constraint([[:col1, '&&'], [:col2, '=']])
+ # exclude([[:col1, '&&'], [:col2, '=']])
# # EXCLUDE USING gist (col1 WITH &&, col2 WITH =)
#
# Options supported:

0 comments on commit e3a47cb

Please sign in to comment.