Always seems to happen, you find the answer after you've asked the 
question.  Wasn't available until 5.24 according to github in one of the 
release notes. 
On Friday, February 3, 2023 at 11:16:56 AM UTC-5 jaso...@gmail.com wrote:

> I'm adding a text column to a table that will always be generated by a 
> function created as immutable.   When I create the migration, the 
> `add_column` method call is not generating the proper `ALTER TABLE` with 
> the `GENERATED ALWAYS AS`:
>
>       add_column :standardized_accno, String, generated_always_as: 
> "standardize_accno(accno)"
>
>
> The immutable function is standardize_accno, while accno is a column in 
> the table that already exists.  The result goes into the new column, 
> standardized_accno.
>
> I've verified that I can do this within psql.  I'm on version 12.1 of 
> postgres, but version 4.49 of Sequel (wondering if that's my problem).
>
> Any help as always much appreciated!
>

-- 
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/42fcc079-3786-4e14-836c-a1989a3ac1fen%40googlegroups.com.

Reply via email to