I am using rails 3 and for dynamo db using ‘aws-sdk’ gem . And I have some doubt in db migration.
1) Is that possible to create db migration for dynamo db in ruby on rails?
2) If so how to write? Because of the dynamo db has no table field name only key value pairs, we need to create only table and primary key?
You cannot write migrations for DynamoDB in Rails; the AWS-SDK gem does not provide support for it. You have to create the tables manually or use a gem.
And if you’re looking for a gem that supports this stuff… unfortunately by and large it doesn’t exist yet. If you’ll excuse the shameless self-promotion though, I’m actually writing a DynamoDB Rails adapter right now; you can check it out at the Dynamoid github repository. I don’t think I’d call it production ready yet, but it could give you a good starting point.