DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
conditional index in postgres
add_index :table_name, :columns, unique: true, where: "(deleted_at IS NULL)"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#conditional
#index
#postgres
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit