softa/activerecord-postgres-hstore — pull request #19 by svoop (2012-04-28 07:11:57+00:00)
Title: Create or drop hstore extension only if necessary

I ran into a small issue on a production server where the Rails db user doesn't have the necessary permissions to create extensions. A simple workaround without having to alter permissions is: Create the extension manually as superuser and then run the migration. For this to work, however, the statements need to be extended with IF NOT EXISTS and IF EXISTS. Nothing big really since it doesn't change the current behavior.