Skip to content

Commit 50bebae

Browse files
authored
Merge pull request #2363 from olleolleolle/extract-migration-from-2303
Add migration for How You Found Us fields
2 parents 121d1a9 + 3daa987 commit 50bebae

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class AddHowYouFoundUsOptions < ActiveRecord::Migration[7.0]
2+
def change
3+
add_column :members, :how_you_found_us, :integer
4+
add_column :members, :how_you_found_us_other_reason, :string
5+
end
6+
end

db/schema.rb

Lines changed: 3 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.1].define(version: 2025_08_20_145012) do
13+
ActiveRecord::Schema[7.1].define(version: 2025_08_23_151717) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -397,6 +397,8 @@
397397
t.datetime "opt_in_newsletter_at", precision: nil
398398
t.enum "dietary_restrictions", default: [], array: true, enum_type: "dietary_restriction_enum"
399399
t.string "other_dietary_restrictions"
400+
t.integer "how_you_found_us"
401+
t.string "how_you_found_us_other_reason"
400402
t.index ["email"], name: "index_members_on_email", unique: true
401403
end
402404

0 commit comments

Comments
 (0)