Sequel.migration do
  change do
    create_table :ip_addresses do
      primary_key :id
      String      :network_name
      Integer     :address
      TrueClass   :allocated, default: false
      String      :type # 'static', 'dynamic', 'reserved'

      unique [:address, :network_name]
    end
  end
end

Sequel.migration do
  change do
    create_table :ip_addresses do
      primary_key :id
      String      :network_name
      Bignum      :address
      TrueClass   :allocated, default: false
      String      :type # 'static', 'dynamic', 'reserved'

      unique [:address, :network_name]
    end
  end
end

Use bignum for ip address
Use bignum for ip address

Postgres Integer is too small

Signed-off-by: Maria Shaldibina <dc03896a0185453e5852a5e0f0fab6cbd2e026ff@pivotal.io>
