Skip to content

Commit

Permalink
Merge pull request #11 from Sage/feature_index_capacity
Browse files Browse the repository at this point in the history
updated table.create method to pass read,write capacity to global sec…
  • Loading branch information
vaughanbrittonsage committed Sep 7, 2017
2 parents db0d452 + 9565933 commit 3224a90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dynamodb_framework/dynamodb_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] })
Expand Down
2 changes: 1 addition & 1 deletion lib/dynamodb_framework/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DynamoDbFramework
VERSION = '1.6.0'
VERSION = '1.6.1'
end

0 comments on commit 3224a90

Please sign in to comment.