Skip to content

Commit 7b5951d

Browse files
committed
Create dietary restrictions column
This change will add a column to the Member model, allowing users to provide dietary information. This should support Codebar hosts to provide good food options for all attendees
1 parent 6632e6e commit 7b5951d

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 AddDietaryRestrictionsToMember < ActiveRecord::Migration[7.0]
2+
def change
3+
add_column :members, :dietary_restrictions, :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.0].define(version: 2023_12_30_162506) do
13+
ActiveRecord::Schema[7.0].define(version: 2024_12_20_215044) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -394,6 +394,7 @@
394394
t.string "pronouns"
395395
t.datetime "accepted_toc_at", precision: nil
396396
t.datetime "opt_in_newsletter_at", precision: nil
397+
t.string "dietary_restrictions"
397398
t.index ["email"], name: "index_members_on_email", unique: true
398399
end
399400

0 commit comments

Comments
 (0)