Skip to content

Commit 921f424

Browse files
committed
Update database table for polymorphism
I previously left out a column for the type of Member. This change fixes that issue Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
1 parent 3d7aa14 commit 921f424

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddMemberTypeToMemberEmailDeliveries < ActiveRecord::Migration[7.2]
2+
def change
3+
add_column :member_email_deliveries, :member_type, :string
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_01_29_095547) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_01_29_175110) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -380,6 +380,7 @@
380380
t.text "bcc", default: [], array: true
381381
t.datetime "created_at", null: false
382382
t.datetime "updated_at", null: false
383+
t.string "member_type"
383384
t.index ["member_id"], name: "index_member_email_deliveries_on_member_id"
384385
end
385386

0 commit comments

Comments
 (0)