Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
class
PlaceOS::Model::GroupZone
- PlaceOS::Model::GroupZone
- PgORM::Base
- ActiveModel::Model
- Reference
- Object
Overview
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Included Modules
- PgORM::Timestamps
- PlaceOS::Model::History::Tracked
Defined in:
placeos-models/group/zone.crConstant Summary
-
CALLBACKS =
{before_save: [do if (__temp_1519 = @group) && __temp_1519.new_record? __temp_1519.save self.group_id = __temp_1519.id.not_nil! end end, do if (__temp_1521 = @zone) && __temp_1521.new_record? __temp_1521.save self.zone_id = __temp_1521.id.not_nil! end end] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end] of Nil, after_create: [] of Nil, before_update: [do self.updated_at = Time.utc end] of Nil, after_update: [] of Nil, before_destroy: [] of Nil, after_destroy: [do end, do end, :__record_history_destroy__] of Nil} -
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. A row withdeny = truemasks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key(group_id, zone_id). -
PRIMARY_KEY_TYPES =
{:group_id => UUID, :zone_id => String} of Nil => Nil -
macro level key => type
-
PRIMARY_KEYS =
[{:group_id, :zone_id}] -
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. A row withdeny = truemasks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key(group_id, zone_id).
Constructors
-
.from_json(string_or_io : String | IO, trusted : Bool = false) : self
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.from_json(string_or_io : String | IO, root : String, trusted : Bool = false) : self
Deserializes the given JSON in string_or_io into an instance of
self, assuming the JSON consists of an JSON object with key root, and whose value is the value to deserialize. -
.from_trusted_json(string_or_io : String | IO, root : String) : self
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.from_trusted_json(string_or_io : String | IO) : self
Serialize from a trusted JSON source
-
.from_trusted_yaml(string_or_io : String | IO) : self
Serialize from a trusted YAML source
-
.from_yaml(string_or_io : String | IO, trusted : Bool = false) : self
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.new(pull : JSON::PullParser)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.new(rs : DB::ResultSet)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.new(created_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, updated_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, group_id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, zone_id : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new, permissions : Int32 | ActiveModel::Model::None = ::ActiveModel::Model::None.new, deny : Bool | ActiveModel::Model::None = ::ActiveModel::Model::None.new)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.new(params : HTTP::Params | Hash(String, String) | Tuple(String, String))
Initialize PlaceOS::Model::GroupZone from
HTTP::Params. -
.undelete(resource_id : String) : self
Recreates a deleted record from its latest
deleteentry, keeping its id.
Class Method Summary
-
.attributes : Array(Symbol)
Returns all attribute keys.
- .by_group_id(id)
- .by_zone_id(id)
-
.change_history(resource_id : String)
Entries recorded for the resource, newest first
-
.changefeed_ignored_update_columns : Array(String) | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.changes(id : Tuple(UUID, String) | Nil = nil) : ChangeFeed
Changefeed at row (if
#idpassed) or whole table level. -
.from_rs(__temp_2636 : DB::ResultSet)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.history_ignored : Array(String)
Fields not recorded, changes to only these fields are not recorded at all
-
.history_redacted : Array(String)
Fields whose values are never recorded
-
.on_error(err : Exception | IO::Error)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.primary_key
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
.table_name
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag.
Instance Method Summary
-
#after_create
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#after_destroy
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#after_initialize(trusted : Bool)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#after_save
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#after_update
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#apply_defaults
Generate code to apply default values
-
#assign_attributes(created_at : Time | Missing = Missing, updated_at : Time | Missing = Missing, group_id : UUID | Missing = Missing, zone_id : String | Missing = Missing, permissions : Int32 | Missing = Missing, deny : Bool | Missing = Missing)
Assign to multiple attributes.
-
#assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String))
Assign to multiple attributes via
HTTP::Params. -
#assign_attributes(model : PlaceOS::Model::GroupZone)
Assign to multiple attributes from a model object
-
#assign_attributes_from_json(json, root : String)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#assign_attributes_from_json(json)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#assign_attributes_from_trusted_json(json, root : String)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#assign_attributes_from_trusted_json(json)
Assign each field from JSON if field exists in JSON and has changed in model
-
#assign_attributes_from_trusted_yaml(yaml)
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#assign_attributes_from_yaml(yaml)
Uses the YAML parser as JSON is valid YAML
-
#attributes
Returns a
Hashof all attribute values -
#attributes_json(io : IO) : Nil
Serialize attributes to JSON, without any other properties
to_jsonmay include, as.from_jsonexpects them. -
#attributes_json(json : JSON::Builder) : Nil
Serialize attributes to JSON, without any other properties
to_jsonmay include, as.from_jsonexpects them. -
#attributes_json : String
Serialize attributes to JSON, without any other properties
to_jsonmay include, as.from_jsonexpects them. -
#attributes_tuple
Returns a
NamedTupleof all attribute values. -
#before_create
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#before_destroy
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#before_save
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#before_update
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. - #build_group(**attributes) : Group
- #build_zone(**attributes) : Zone
-
#changed?
Check if any attributes have changed.
-
#changed_attributes
Returns a
Hashwith all changed attributes. -
#changed_json(io : IO) : Nil
Serialize the set of changed attributes to JSON.
-
#changed_json : String
Serialize the set of changed attributes to JSON.
-
#changed_persist_attributes
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#changed_yaml(io : IO) : Nil
Serialize the set of changed attributes to YAML.
-
#changed_yaml : String
Serialize the set of changed attributes to YAML.
-
#changes
Returns a
Hashof changed attributes, mapping each to a{previous, current}tuple. -
#changes_json(io : IO) : Nil
Serialize changed attributes to JSON as
{"attribute": [previous, current]}. -
#changes_json(json : JSON::Builder) : Nil
Serialize changed attributes to JSON as
{"attribute": [previous, current]}. -
#changes_json : String
Serialize changed attributes to JSON as
{"attribute": [previous, current]}. -
#clear_changes_information
Reset changes for all attributes.
- #create_group(**attributes) : Group
- #create_group!(**attributes) : Group
- #create_zone(**attributes) : Zone
- #create_zone!(**attributes) : Zone
-
#created_at : Time
#created_atgetter -
#created_at=(value : Time)
Setters
#created_atsetter -
#created_at? : Time | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#created_at_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#created_at_change : Tuple(Time | Nil, Time | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#created_at_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#created_at_default : Time
#created_at's default value - #created_at_present? : Bool
-
#created_at_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#created_at_was : Time | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#created_at_will_change! : Nil
Include
#created_atin the set of changed attributes, whether it has changed or not. -
#deny : Bool
#denygetter -
#deny=(value : Bool)
#denysetter -
#deny? : Bool | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#deny_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#deny_change : Tuple(Bool | Nil, Bool | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#deny_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#deny_default : Bool
#deny's default value - #deny_present? : Bool
-
#deny_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#deny_was : Bool | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#deny_will_change! : Nil
Include
#denyin the set of changed attributes, whether it has changed or not. - #group : Group
- #group! : Group
- #group=(record : Group) : Group
- #group? : Group | Nil
-
#group_id : UUID
#group_idgetter -
#group_id=(value : UUID)
#group_idsetter -
#group_id? : UUID | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#group_id_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#group_id_change : Tuple(UUID | Nil, UUID | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#group_id_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#group_id_default : UUID
#group_id's default value - #group_id_present? : Bool
-
#group_id_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#group_id_was : UUID | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#group_id_will_change! : Nil
Include
#group_idin the set of changed attributes, whether it has changed or not. -
#history_action : String | Nil
Overrides the action recorded by the next change, e.g.
-
#history_action=(history_action : String | Nil)
Overrides the action recorded by the next change, e.g.
-
#history_correlation_id : String | Nil
A parent the change should also be found under
-
#history_metadata : PlaceOS::Model::History::Metadata | Nil
Request details recorded with changes to this record, defaults to
History.current_metadata -
#history_metadata=(history_metadata : PlaceOS::Model::History::Metadata | Nil)
Request details recorded with changes to this record, defaults to
History.current_metadata -
#id
Always returns this record's primary key value, even when the primary key isn't named
#id -
#id?
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#invoke_props
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. - #permission_flags : Permissions
- #permission_flags=(flags : Permissions)
-
#permissions : Int32
#permissionsgetter -
#permissions=(value : Int32)
#permissionssetter -
#permissions? : Int32 | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#permissions_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#permissions_change : Tuple(Int32 | Nil, Int32 | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#permissions_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#permissions_default : Int32
#permissions's default value - #permissions_present? : Bool
-
#permissions_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#permissions_was : Int32 | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#permissions_will_change! : Nil
Include
#permissionsin the set of changed attributes, whether it has changed or not. -
#persistent_attributes
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#primary_key
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#primary_key_hash
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. - #reload_group : Group
- #reload_group? : Group | Nil
- #reload_zone : Zone
- #reload_zone? : Zone | Nil
-
#restore_attributes
Reset each attribute to their previous values and clears all changes.
-
#table_name
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#updated_at : Time
#updated_atgetter -
#updated_at=(value : Time)
#updated_atsetter -
#updated_at? : Time | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#updated_at_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#updated_at_change : Tuple(Time | Nil, Time | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#updated_at_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#updated_at_default : Time
#updated_at's default value - #updated_at_present? : Bool
-
#updated_at_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#updated_at_was : Time | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#updated_at_will_change! : Nil
Include
#updated_atin the set of changed attributes, whether it has changed or not. -
#validate_nilability
Validate that all non-nillable fields have values.
- #zone : Zone
- #zone! : Zone
- #zone=(record : Zone) : Zone
- #zone? : Zone | Nil
-
#zone_id : String
#zone_idgetter -
#zone_id=(value : String)
#zone_idsetter -
#zone_id? : String | Nil
NOTE use
getter/getter!(notproperty/property!) so that the setter defined later in__create_initializer__is the only setter on the field. -
#zone_id_assigned? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#zone_id_change : Tuple(String | Nil, String | Nil) | Nil
Returns a Tuple of the previous and the current value of an instance variable if it has changed
-
#zone_id_changed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#zone_id_default : String
#zone_id's default value - #zone_id_present? : Bool
-
#zone_id_removed? : Bool
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#zone_id_was : String | Nil
Junction table: a group's access to a zone, with a permission bitmask and a
#denyflag. -
#zone_id_will_change! : Nil
Include
#zone_idin the set of changed attributes, whether it has changed or not.
Instance methods inherited from module PlaceOS::Model::History::Tracked
change_history
change_history,
history_correlation_id : String | Nil
history_correlation_id,
history_resource_id : String
history_resource_id
Macros inherited from module PlaceOS::Model::History::Tracked
history_ignore(*fields)
history_ignore,
history_redact(*fields)
history_redact
Constructor Detail
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Deserializes the given JSON in string_or_io into
an instance of self, assuming the JSON consists
of an JSON object with key root, and whose value is
the value to deserialize. Will not deserialise from
fields with mass_assign: false
class User < ActiveModel::Model
attribute name : String
attribute google_id : UUID, mass_assign: false
end
User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Serialize from a trusted JSON source
Serialize from a trusted YAML source
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Initialize PlaceOS::Model::GroupZone from HTTP::Params.
Recreates a deleted record from its latest delete entry, keeping its id.
Records removed alongside it (cascading deletes) are not restored and redacted fields are left at their defaults. Raises if there is no delete entry or the record can't be saved, e.g. if it already exists.
Class Method Detail
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Changefeed at row (if #id passed) or whole table level.
Returns a ChangeFeed instance which can be used to invoke async callbacks via on or
use blocking Iterator via each method.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Fields not recorded, changes to only these fields are not recorded at all
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Instance Method Detail
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Assign to multiple attributes.
Assign to multiple attributes via HTTP::Params.
Assign to multiple attributes from a model object
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Assign each field from JSON if field exists in JSON and has changed in model
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Serialize attributes to JSON, without any other properties to_json may
include, as .from_json expects them.
Values are serialized as in to_json, applying any attribute converters.
Serialize attributes to JSON, without any other properties to_json may
include, as .from_json expects them.
Values are serialized as in to_json, applying any attribute converters.
Serialize attributes to JSON, without any other properties to_json may
include, as .from_json expects them.
Values are serialized as in to_json, applying any attribute converters.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Serialize changed attributes to JSON as {"attribute": [previous, current]}.
Values are serialized as in to_json, applying any attribute converters.
Serialize changed attributes to JSON as {"attribute": [previous, current]}.
Values are serialized as in to_json, applying any attribute converters.
Serialize changed attributes to JSON as {"attribute": [previous, current]}.
Values are serialized as in to_json, applying any attribute converters.
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Include #created_at in the set of changed attributes, whether it has changed or not.
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Include #deny in the set of changed attributes, whether it has changed or not.
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Include #group_id in the set of changed attributes, whether it has changed or not.
Overrides the action recorded by the next change, e.g. approve
A parent the change should also be found under
Request details recorded with changes to this record, defaults to
History.current_metadata
Request details recorded with changes to this record, defaults to
History.current_metadata
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Include #permissions in the set of changed attributes, whether it has changed or not.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Include #updated_at in the set of changed attributes, whether it has changed or not.
NOTE use getter / getter! (not property / property!) so that the
setter defined later in __create_initializer__ is the only setter on
the field. Crystal's overload resolution silently fails to replace a
property-defined setter with one of identical signature for generic
types (e.g. Set(String)?, Array(String)?, String | Array(String)),
although it does work for non-generic ones like String?. Defining the
setter only once via __create_initializer__ ensures change tracking,
sanitization, and custom setter blocks run uniformly across all types.
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).
Junction table: a group's access to a zone, with a permission bitmask
and a #deny flag. A row with deny = true masks off access that would
otherwise be inherited from an ancestor zone's GroupZone row (replace
semantics). Composite primary key (group_id, zone_id).