Method: OceanDynamo::Tables::ClassMethods#table_key_schema

Defined in:
lib/ocean-dynamo/tables.rb

#table_key_schemaObject



136
137
138
139
140
141
# File 'lib/ocean-dynamo/tables.rb', line 136

def table_key_schema
  keys = []
  keys << { attribute_name: table_hash_key.to_s, key_type: "HASH" }
  keys << { attribute_name: table_range_key.to_s, key_type: "RANGE" } if table_range_key
  keys
end