Search
 
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
Name
1+7 =