2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/generators/aws_sqs_moniter/templates/create_processed_messages_migration.rb', line 2
def change
create_table :processed_messages, id: :uuid do |t|
t.timestamps
t.string :message_id, null: false
t.string :queue, null: false
t.string :message, null: false
t.string :topic, null: false
t.integer :attempts, null: false, default: 0
t.datetime :attempted_at
t.string :processed_by
t.datetime :processed_at
t.index %i(message_id queue), unique: true
end
end
|