rare_map icon indicating copy to clipboard operation
rare_map copied to clipboard

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

Open nardonykolyszyn opened this issue 5 years ago • 1 comments

nardonykolyszyn avatar Apr 12 '19 14:04 nardonykolyszyn

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.

jacob3141 avatar Dec 23 '20 11:12 jacob3141