Index conditionnel dans les postgres
add_index :table_name, :columns, unique: true, where: "(deleted_at IS NULL)"
Confused Cassowary
add_index :table_name, :columns, unique: true, where: "(deleted_at IS NULL)"