Closed felixbuenemann closed 5 years ago
Also experiencing this on Rails 5.1.4, schema_plus_indexes (0.3.0), schema_plus_pg_indexes (0.3.1)
Closing this as expression indexes are natively supported in Rails 5.0+. And operator classes in Rails 5.2+. There will be one Schema+ PG indexes update that will support rails 5.2 (hopefully released in the next day or two). However, as it is no longer needed, that is the last version of this gem. (schema_plus_indexes will still be maintained)
The following index is created just fine by the migration, but dumped incorrectly in schema.rb:
The resulting schema.rb contains:
As can be seen it dumped
(id::text)
as(id)::text
which leads to a postgres syntax error when loading the schema dump:Note: Feel free to close if this has already been fixed in recent versions, I'm still using rails 4.2.8 so I'm stuck on schema_plus_pg_indexes v0.1.12 until I find the time to upgrade rails.