Aggiunge filtri avanzati per i destinatari delle campagne email.
La scelta della lista passa da un wizard a tre passi, con anteprima del conteggio e lista congelata solo dopo la conferma. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddAudienceFiltersToMailings < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :mailings, :audience_filters, :jsonb, null: false, default: {}
|
||||
add_index :mailings, :audience_filters, using: :gin
|
||||
end
|
||||
end
|
||||
Generated
+3
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_08_20_110000) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_08_24_190000) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
@@ -149,6 +149,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_08_20_110000) do
|
||||
t.string "ab_assignment", default: "from_record", null: false
|
||||
t.boolean "ab_test", default: false, null: false
|
||||
t.string "audience", default: "to_send", null: false
|
||||
t.jsonb "audience_filters", default: {}, null: false
|
||||
t.datetime "authorized_at"
|
||||
t.text "body_html", null: false
|
||||
t.text "body_html_b"
|
||||
@@ -174,6 +175,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_08_20_110000) do
|
||||
t.datetime "updated_at", null: false
|
||||
t.bigint "updated_by_id"
|
||||
t.index ["ab_test"], name: "index_mailings_on_ab_test"
|
||||
t.index ["audience_filters"], name: "index_mailings_on_audience_filters", using: :gin
|
||||
t.index ["mail_identity_id"], name: "index_mailings_on_mail_identity_id"
|
||||
t.index ["project_id"], name: "index_mailings_on_project_id"
|
||||
t.index ["status", "next_send_at"], name: "index_mailings_on_status_and_next_send_at"
|
||||
|
||||
Reference in New Issue
Block a user