rare_map
rare_map copied to clipboard
/schema_parser.rb:23:in `block in parse_schema': undefined method `[]' for nil:NilClass
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.