On Friday, March 9, 2018 at 10:00:34 AM UTC-8, Rodrigo Rosenfeld Rosas 
wrote:
>
> I'd love to be able to use something like this:
>
> Sequel.migration do
>   change do
>     create_table(:my_table) do
>       comment "This shortly explain the purpose of this table"
>       primary_key :id
>       String :name, null: false
>     end
>   end
> end
>
> Or maybe create_table :my_table, comment: 'my_comment' do...
>
> Having to resort to something like this is not ideal because it would 
> require a separate migration, since Sequel Migrations doesn't support AR 
> "reversible" feature inside a change block:
>
> DB << "comment on table my_table is 'this explains the purpose of this 
> table'"
>
> I couldn't find anything related to that looking at Sequel's documentation.
>

This external extension is linked from the plugin page: 
https://github.com/mpalmer/sequel-pg-comment 

Sequel doesn't have code internally to handle database comments, but if it 
is something you are planning to do a lot, I recommend using the external 
extension.

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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to