cockroachdb / cockroachdb/activerecord-cockroachdb-adapter

Support removing unique constraints

Open
#304 0 comments 0 reactions 0 assignees View on GitHub
rails 7.1
Dominant language
Ruby
Stars
105
Forks
56
Avg merge
9h 5m
Merged PRs (30d)
3

Description

As of now we have the following error message:

```
unimplemented: cannot drop UNIQUE constraint "uniq_rails_1e07660b77" using ALTER TABLE DROP CONSTRAINT, use DROP INDEX CASCADE instead
```

It seems that with a local version of the `#remove_constraint` method we could support it.

See excluded test `test_remove_unique_constraint_by_column` (as of writting, this exclusion is part of the rails 7.1 PR).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.