Sha256: 9a334b6b758e6dd524a6405fa259c66503600af76fef90859d24b08a5eebc121

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module RestPack::Core::Service::Models
  class Domain < ActiveRecord::Base
    self.table_name = :restpack_domains
    attr_accessible :identifier, :host

    validates_presence_of :identifier
    validates :identifier, :length => { :maximum => 512 }

    belongs_to :host
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restpack_core_service-0.0.6 lib/restpack_core_service/models/domain.rb