diff --git a/db/migrate/20250823151717_add_how_you_found_us_options.rb b/db/migrate/20250823151717_add_how_you_found_us_options.rb new file mode 100644 index 000000000..b247c3a77 --- /dev/null +++ b/db/migrate/20250823151717_add_how_you_found_us_options.rb @@ -0,0 +1,6 @@ +class AddHowYouFoundUsOptions < ActiveRecord::Migration[7.0] + def change + add_column :members, :how_you_found_us, :integer + add_column :members, :how_you_found_us_other_reason, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 5c5dbc99c..6c2636bc6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2025_08_20_145012) do +ActiveRecord::Schema[7.1].define(version: 2025_08_23_151717) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -397,6 +397,8 @@ t.datetime "opt_in_newsletter_at", precision: nil t.enum "dietary_restrictions", default: [], array: true, enum_type: "dietary_restriction_enum" t.string "other_dietary_restrictions" + t.integer "how_you_found_us" + t.string "how_you_found_us_other_reason" t.index ["email"], name: "index_members_on_email", unique: true end