The main thing missing in the gem (once forked and updated to even run properly at all) is reversible migration functions. Any advice or source code you could link to that could give me an idea how to implement a reversible migration method that can be used in a `change` block?
On Fri, Feb 26, 2021 at 11:51 AM Jeremy Evans <jeremyeva...@gmail.com> wrote: > On Fri, Feb 26, 2021 at 8:11 AM mark....@vydia.com <mark.al...@vydia.com> > 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 a topic in the > Google Groups "sequel-talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sequel-talk/EpAe_N__FeU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sequel-talk+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sequel-talk/CADGZSSfRDxZnNfZ%2BtVk%3DHduQBzJqYLr0U%3DAavFLg1aH38nP_6w%40mail.gmail.com > <https://groups.google.com/d/msgid/sequel-talk/CADGZSSfRDxZnNfZ%2BtVk%3DHduQBzJqYLr0U%3DAavFLg1aH38nP_6w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- *Mark Allen, *Vice President, Engineering, Vydia, Inc. Website: vydia.com <https://linkedin.com/in/markivanallen> <https://facebook.com/vydiaofficial> <https://twitter.com/vydiaofficial> -- 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 sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/CA%2B%2BobE_Ly%3DfwBzACrorrhr-OOr4eyWBXa_d9z4760cQr4rGb%2Bg%40mail.gmail.com.