diff --git a/lib/dynamodb_framework/dynamodb_table.rb b/lib/dynamodb_framework/dynamodb_table.rb index 76dd00c..f60ddd3 100644 --- a/lib/dynamodb_framework/dynamodb_table.rb +++ b/lib/dynamodb_framework/dynamodb_table.rb @@ -68,7 +68,7 @@ def create(store: DynamoDbFramework.default_store, read_capacity: 25, write_capa if indexes != nil && indexes.length > 0 global_indexes = [] indexes.each do |i| - global_indexes << i.create(store: store, submit: false) + global_indexes << i.create(store: store, submit: false, read_capacity: read_capacity, write_capacity: write_capacity) index_partition_key = i.instance_variable_get(:@partition_key) unless builder.contains(name: index_partition_key[:field]) builder.add({ name: index_partition_key[:field], type: index_partition_key[:type] }) diff --git a/lib/dynamodb_framework/version.rb b/lib/dynamodb_framework/version.rb index 1c3760e..603cee3 100644 --- a/lib/dynamodb_framework/version.rb +++ b/lib/dynamodb_framework/version.rb @@ -1,3 +1,3 @@ module DynamoDbFramework - VERSION = '1.6.0' + VERSION = '1.6.1' end