On Fri, Feb 26, 2021 at 8:11 AM [email protected] <[email protected]>
wrote:

> Hi Jeremy & all,
>
> I'm looking for the best approach for adding postgresql comments to tables
> & columns in migrations. I looked around in sequel docs for any first-class
> support for this, but could not find it — maybe I'm not seeing a specific
> plugin somewhere.
>
> The only thing I could find was this gem:
> https://github.com/mpalmer/sequel-pg-comment
>
> However it's unmaintained and does not work well, even after the ref of
> one of the open PRs to update it.
>
> Is there a good solution for this that I missed?
>

2 approaches:

1) Fork the gem and fix the issues in it, then use that.

2) Use Database#run with the appropriate SQL for each comment you want to
add.

I'm guessing both are suboptimal.

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/CADGZSSfRDxZnNfZ%2BtVk%3DHduQBzJqYLr0U%3DAavFLg1aH38nP_6w%40mail.gmail.com.

Reply via email to