Sha256: 0585798ac45d264505dd8d243eecade6d2af953c23904181f46355c94e9723a1
Contents?: true
Size: 743 Bytes
Versions: 107
Compression:
Stored size: 743 Bytes
Contents
class <%= @migration_class_name %> < Dynomite::Migration def up update_table :<%= @table_name %> do |t| t.gsi(:create) do |i| i.partition_key "<%= @partition_key %>" # required <% if @sort_key # so extra spaces are not added when generated -%> t.sort_key "<%= @sort_key %>" # optional <% end -%> i.provisioned_throughput(5) end # Examples: # t.gsi(:update, "update-me-index") do |i| # i.provisioned_throughput(10) # end # t.gsi(:delete, "delete-me-index") # Must use :create, :update, :delete one at a time in separate migration files. # DynamoDB imposes this. end end end # More examples: https://github.com/tongueroo/dynomite/tree/master/docs
Version data entries
107 entries across 107 versions & 2 rubygems