Sha256: 1ecd1cc73b5a5741562fa567d2649ccca03ec400584c72d3645f8e4f1d833f68

Contents?: true

Size: 525 Bytes

Versions: 24

Compression:

Stored size: 525 Bytes

Contents

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

24 entries across 24 versions & 2 rubygems

Version Path
aws-sdk-rails-4.1.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-4.0.3 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-4.0.2 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-4.0.1 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-4.0.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.13.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.12.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.11.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.10.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.9.1 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.9.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.8.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.7.1 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.7.0 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.6.4 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.6.3 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.6.2 lib/generators/aws_record/model/templates/table_config.erb
aws-sdk-rails-3.6.1 lib/generators/aws_record/model/templates/table_config.rb
aws-sdk-rails-3.6.0 lib/generators/aws_record/model/templates/table_config.rb
aws-sdk-rails-3.5.0 lib/generators/aws_record/model/templates/table_config.rb