← Back to Upcase

schema_plus gem: anybody considering or using it?


(Justin Gordon) #1

When looking to change a postgres index to be case insensitive, I came across this gem: https://github.com/lomba/schema_plus which would seem to provide quite a few nice database features.

To quote:

SchemaPlus is an ActiveRecord extension that provides enhanced capabilities for schema definition and querying, including: enhanced and more DRY index capabilities, support and automation for foreign key constraints, and support for views.

I like this option when trying to rollback migrations:

drop_table :table_name, if_exists: true   # no error if table doesn't exist

I’m wondering if anybody on this group is using it or evaluated it.