dazuma/activerecord-postgis-adapter — pull request #77 by smortex (2013-08-19 16:11:43+00:00)
Title: Create language plpgsql

While creating a Rails application using activerecord-postgis-adapter on FreeBSD, the database creation failed with a complaint about the plpgsql language not being installed.

Creating the plpgsql language indeed fix this issue. I guess that some configuration may make the plpgsql language available to newly created databases or not. The attached patch is intended to make this work in both situations.