On Tuesday, April 28, 2015 at 8:41:36 AM UTC-7, Kevin Kirsche wrote:
>
> I'm trying to build a migration which would include an IP Address as a 
> zero-filled unsigned integer.
>
> My migration looks something like this currently but `zerofill: true` is 
> not working
>     
>     up do
>       create table :ip do
>         Integer :id, size: 7, default: nil
>         Integer :ip_address_integer, size: 10, unsigned: true, zerofill: 
> true
>         varchar :scan_time, size: 32
>         primary_key :id
>       end
>     end
>
> How would I make the IP address zero filled using the sequel ORM?
>

Sequel does not support a :zerofill argument for defining columns. You may 
want to just specify the type directly using something like:
column :ip_address_integer, 'integer(10) unsigned zerofill'

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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to