Sha256: a8e62d292874d9d50fb41c12fce85856c6ddf9ceb3acdc052bf4e37f80e5821d
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true require 'aws-record' module ModelTableConfig def self.config Aws::Record::TableConfig.define do |t| t.model_class <%= class_name %> t.read_capacity_units <%= primary_read_units %> t.write_capacity_units <%= primary_write_units %> <%- gsis.each do |index| %> t.global_secondary_index(:<%= index.name %>) do |i| i.read_capacity_units <%= gsi_rw_units[index.name][0] %> i.write_capacity_units <%= gsi_rw_units[index.name][1] %> end <%- end -%> end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-record-rails-0.2.0 | lib/generators/aws_record/model/templates/table_config.rb.tt |
aws-record-rails-0.1.0 | lib/generators/aws_record/model/templates/table_config.rb.tt |