From d75939a2c3378cc2b71ebc762877f89feaa76627 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 16 Jun 2013 15:00:45 +0300 Subject: [PATCH] Document how to create a table with RANGE key. --- README.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.markdown b/README.markdown index eeb6a04..6becead 100644 --- a/README.markdown +++ b/README.markdown @@ -112,11 +112,15 @@ end Dynamoid has some sensible defaults for you when you create a new table, including the table name and the primary key column. But you can change those if you like on table creation. +By default, Dynamoid uses a HASH key. If you would like to use a RANGE key instead, then you have to specify the range field name. + ```ruby class User include Dynamoid::Document table :name => :awesome_users, :key => :user_id, :read_capacity => 400, :write_capacity => 400 + + range :range_name, :string end ```