diff --git a/db/migrate/20260113143404_add_sex_registered_at_birth_to_sales_logs.rb b/db/migrate/20260113143404_add_sex_registered_at_birth_to_sales_logs.rb new file mode 100644 index 000000000..c245d1d51 --- /dev/null +++ b/db/migrate/20260113143404_add_sex_registered_at_birth_to_sales_logs.rb @@ -0,0 +1,12 @@ +class AddSexRegisteredAtBirthToSalesLogs < ActiveRecord::Migration[7.2] + def change + change_table :sales_logs, bulk: true do |t| + t.column :sexRAB1, :string + t.column :sexRAB2, :string + t.column :sexRAB3, :string + t.column :sexRAB4, :string + t.column :sexRAB5, :string + t.column :sexRAB6, :string + end + end +end diff --git a/db/schema.rb b/db/schema.rb index f781ed899..99b47a365 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.2].define(version: 2025_04_16_111741) do +ActiveRecord::Schema[7.2].define(version: 2026_01_13_143404) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -787,6 +787,12 @@ ActiveRecord::Schema[7.2].define(version: 2025_04_16_111741) do t.datetime "lasttransaction" t.datetime "initialpurchase" t.boolean "manual_address_entry_selected", default: false + t.string "sexRAB1" + t.string "sexRAB2" + t.string "sexRAB3" + t.string "sexRAB4" + t.string "sexRAB5" + t.string "sexRAB6" t.index ["assigned_to_id"], name: "index_sales_logs_on_assigned_to_id" t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"