Sha256: eae05eccfb07603c54441c6c2255b44e28ec7be517e69c1ecc8daa95bf5680b2
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
class <%= @migration_class_name %> < Dynomite::Migration def up update_table :<%= @table_name %> do |t| t.add_gsi(partition_key: "<%= @partition_key %>", sort_key: "<%= @sort_key || 'updated_at' %>") # t.remove_gsi(partition_key: "<%= @partition_key %>", sort_key: "<%= @sort_key || 'updated_at' %>") end end end # More examples: https://v5.docs.rubyonjets.com/docs/database/dynamodb/migration/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynomite-2.0.3 | lib/dynomite/migration/templates/update_table.rb |