Sha256: 1e3b04f90fe999137c415219a78929b31a87418c0d7d98f81efb0a4a987edb8d

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

# -*- coding: utf-8 -*-

module Dcmgr::Models
  # hostname table for each instance to ensure uniqueness.
  class HostnameLease < BaseNew

    inheritable_schema do
      String :account_id, :null=>false, :size=>50
      String :hostname, :null=>false, :size=>32

      index [:account_id, :hostname], {:unique=>true}
    end
    with_timestamps
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
wakame-vdc-agents-11.06.0 lib/dcmgr/models/hostname_lease.rb
wakame-vdc-dcmgr-11.06.0 lib/dcmgr/models/hostname_lease.rb
wakame-vdc-dcmgr-10.12.0 lib/dcmgr/models/hostname_lease.rb
wakame-vdc-agents-10.12.0 lib/dcmgr/models/hostname_lease.rb