metaminded / etikett

MIT License
0 stars 0 forks source link

Use "if not exists" for create extension pg_trgm #3

Closed msievers closed 10 years ago

msievers commented 10 years ago

In

db/migrate/20130923110554_create_extension_pg_trgm.rb

the if not exists check is omitted for create extension which might lead to errors under certain conditions, e.g. if the admin has decided to add pg_trgm to template1. It should be safe to use if not exists anyway.

Crunch09 commented 10 years ago

Thanks, pg_trgm is removed now, because it's not needed anymore.