mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Combine migrations, remove json objects from bounced mails
This commit is contained in:
parent
fae620c19d
commit
659cb7f4e6
4 changed files with 14 additions and 24 deletions
|
@ -2,9 +2,12 @@ class CreateBouncedMailAddresses < ActiveRecord::Migration[6.0]
|
|||
def change
|
||||
create_table :bounced_mail_addresses do |t|
|
||||
t.string :email, null: false
|
||||
t.string :bounce_reason, null: false
|
||||
t.integer :incidents, null: false, default: 1
|
||||
t.jsonb :response_json
|
||||
t.string :message_id, null: false
|
||||
t.string :bounce_type, null: false
|
||||
t.string :bounce_subtype, null: false
|
||||
t.string :action, null: false
|
||||
t.string :status, null: false
|
||||
t.string :diagnostic, null: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
class AddRecipientJsonToBouncedMailAddress < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :bounced_mail_addresses, :recipient_json, :jsonb, null: false
|
||||
end
|
||||
end
|
|
@ -1,9 +0,0 @@
|
|||
class RemoveIncidentsFromBouncedMailAddresses < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
remove_column :bounced_mail_addresses, :incidents
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :bounced_mail_addresses, :incidents, :integer, null: false, default: 1
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue