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

/schema_parser.rb:23:in block in parse_schema': undefined method []' for nil:NilClass #2

Open
nardonykolyszyn opened this issue Apr 12, 2019 · 1 comment

Comments

@nardonykolyszyn
Copy link

No description provided.

@jacob3141
Copy link

I have investigated on that issue. The reason this fails is because the pattern matching in schema_parser.rb seems to match on a line that it is not supposed to match on, in my case:

t.index ...

So the solution here is to not match on t.index'es in the first place. I changed line 22 of schema_parser.rb to

when /^t\.(?!index)/

and now it works.

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

No branches or pull requests

2 participants