Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support whitespaces in definitions #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zverok
Copy link

@zverok zverok commented Dec 14, 2024

Trying to support Rails 6.1 which now has t.check_constraint "some long statement", but I am too unfamiliar with the development environment to include Rails-version specific code; so for now, I just deduced (and tested on a local project) that solving #16 will help.

The fix is to use more robust regexp for column name detection in Rails-generated statements.

The PR seems to work, both practically (when included locally in Rails 6.1+ project with constraints in DB), and in tests that are related to my changes.

I am not sure why SQLite tests fail on CI, but I am almost sure that it is unrelated:

can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.4. Make sure all dependencies are added to Gemfile.

Please advise how to proceed with this PR.

@zverok zverok marked this pull request as ready for review December 15, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant