Skip to content

Commit 1a8b558

Browse files
author
Patrick Kaeding
committed
Merge branch 'improve_doc' of git://github.com/stefanneculai/Dynamoid into 0.7.x
THis accepts PR Veraticus#126
2 parents 88458d5 + 3ab77fa commit 1a8b558

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,15 @@ end
112112

113113
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.
114114

115+
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.
116+
115117
```ruby
116118
class User
117119
include Dynamoid::Document
118120

119121
table :name => :awesome_users, :key => :user_id, :read_capacity => 400, :write_capacity => 400
122+
123+
range :range_name, :string
120124
end
121125
```
122126

0 commit comments

Comments
 (0)