On Thursday, February 20, 2020 at 8:34:36 AM UTC-8, BeeRich33 wrote:
>
> Hi there.  
>
> I can't seem to load an extension:
>
> Sequel.extension :earthdistance
>
> Says it cannot load such a file.  I tried loading :cube first, but that 
> too wouldn't load.  \dx shows I have both installed.  
>
> Any insight?  Obviously PostgreSQL.  
>

Apparently surprisingly, Sequel.extension loads Sequel extensions, not 
PostgreSQL extensions.  You can see what Sequel extensions are available by 
going to https://sequel.jeremyevans.net/plugins.html and looking under 
"Global extensions that ship with Sequel".

You can use Database#run to run the appropriate CREATE EXTENSION query to 
add the PostgreSQL extension to the database.  You would generally do this 
in a migration, assuming you are using migrations.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/a58c33d3-79f0-467d-b50b-6badfd75725f%40googlegroups.com.

Reply via email to