Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down