Browse Source

CLDC-4177: Update database

CLDC-4177-sales-sab-question
Katherine Langford 2 weeks ago
parent
commit
a0f23420d3
  1. 12
      db/migrate/20260113143404_add_sex_registered_at_birth_to_sales_logs.rb
  2. 8
      db/schema.rb

12
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

8
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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 # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -787,6 +787,12 @@ ActiveRecord::Schema[7.2].define(version: 2025_04_16_111741) do
t.datetime "lasttransaction" t.datetime "lasttransaction"
t.datetime "initialpurchase" t.datetime "initialpurchase"
t.boolean "manual_address_entry_selected", default: false 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 ["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 ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id"
t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id"

Loading…
Cancel
Save