Skip to content

Commit

Permalink
Use modern ActiveRecord syntax for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Feb 22, 2024
1 parent 56fb45e commit 75f734d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/idempo/active_record_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def self.create_table(via_migration)
via_migration.create_table "idempo_responses", charset: "utf8mb4", collation: "utf8mb4_unicode_ci" do |t|
t.string :idempotent_request_key, index: {unique: true}, null: false
t.datetime :expire_at, index: true, null: false # Needs an index for cleanup
t.binary :idempotent_response_payload, size: :medium
t.binary :idempotent_response_payload, limit: Idempo::SAVED_RESPONSE_BODY_SIZE_LIMIT
t.timestamps
end
end
Expand Down

0 comments on commit 75f734d

Please sign in to comment.