Datacenter build and management service
Conch::DB::Result::ValidationState
validation_state
data_type: 'uuid'
default_value: gen_random_uuid()
is_nullable: 0
size: 16
data_type: 'text'
is_foreign_key: 1
is_nullable: 0
data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16
data_type: 'timestamp with time zone'
default_value: current_timestamp
is_nullable: 0
original: {default_value => \"now()"}
data_type: 'enum'
extra: {custom_type_name => "validation_status_enum",list => ["error","fail","processing","pass"]}
is_nullable: 0
data_type: 'timestamp with time zone'
is_nullable: 1
data_type: 'uuid'
is_foreign_key: 1
is_nullable: 0
size: 16
Type: belongs_to
Related object: Conch::DB::Result::Device
Type: belongs_to
Related object: Conch::DB::Result::DeviceReport
Type: belongs_to
Related object: Conch::DB::Result::ValidationPlan
Type: has_many
Related object: Conch::DB::Result::ValidationStateMember
Type: many_to_many
Composing rels: “validation_state_members” -> validation_result
Add validation_state_members, validation_result rows to the resultset cache. This allows those rows to be included in serialized data (see “TO_JSON”).
The implementation is gross because has-multi accessors always go to the db, so there is no non-private way of extracting related rows from the result.
Copyright Joyent, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.