Em sexta-feira, 9 de março de 2018 15:31:14 UTC-3, Jeremy Evans escreveu:
>
> 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, I'll take a look at it :) 

-- 
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 post to this group, send email to sequel-talk@googlegroups.com.
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