Class: DynamodbModel::Migration::Dsl::LocalSecondaryIndex

Inherits:
BaseSecondaryIndex show all
Defined in:
lib/dynamodb_model/migration/dsl/local_secondary_index.rb

Instance Attribute Summary

Attributes inherited from BaseSecondaryIndex

#action, #attribute_definitions, #index_name, #key_schema

Instance Method Summary collapse

Methods inherited from BaseSecondaryIndex

#conventional_index_name, #evaluate, #params

Methods included from Common

#adjust_schema_and_attributes, #partition_key, #provisioned_throughput, #sort_key

Constructor Details

#initialize(index_name = nil, &block) ⇒ LocalSecondaryIndex

Returns a new instance of LocalSecondaryIndex.



3
4
5
6
# File 'lib/dynamodb_model/migration/dsl/local_secondary_index.rb', line 3

def initialize(index_name=nil, &block)
  # Can only create local secondary index when creating a table
  super(:create, index_name, &block)
end