DynamoDB Dynomite Migrations Time to Live

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

Here’s a migration example that enables time to live.

class UpdatePosts < Dynomite::Migration
  def up
    update_time_to_live(:posts, enabled: true, attribute_name: "ttl")
  end
end