From 7adf83242d0e802ea05a9d3eae2798c520f66eb4 Mon Sep 17 00:00:00 2001 From: Steve Lorek Date: Wed, 5 Jun 2024 15:19:22 +0100 Subject: [PATCH] Test adding migration after deployment --- config/analytics.yml | 1 + .../20240605141826_test_review_apps_subsequent_migration.rb | 5 +++++ db/schema.rb | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240605141826_test_review_apps_subsequent_migration.rb diff --git a/config/analytics.yml b/config/analytics.yml index 0f0986ae6d..29eac83b05 100644 --- a/config/analytics.yml +++ b/config/analytics.yml @@ -101,6 +101,7 @@ shared: - dqt_teacher_status - submitted_using_slc_data - journeys_session_id + - test_column :decisions: - id - result diff --git a/db/migrate/20240605141826_test_review_apps_subsequent_migration.rb b/db/migrate/20240605141826_test_review_apps_subsequent_migration.rb new file mode 100644 index 0000000000..44b17de1dd --- /dev/null +++ b/db/migrate/20240605141826_test_review_apps_subsequent_migration.rb @@ -0,0 +1,5 @@ +class TestReviewAppsSubsequentMigration < ActiveRecord::Migration[7.0] + def change + add_column :claims, :test_column, :text, default:"test" + end +end diff --git a/db/schema.rb b/db/schema.rb index 9d3f1c5cf8..41d1ca8f05 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.0].define(version: 2024_06_05_124110) do +ActiveRecord::Schema[7.0].define(version: 2024_06_05_141826) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" enable_extension "pgcrypto" @@ -97,6 +97,7 @@ t.boolean "submitted_using_slc_data", default: false t.datetime "sent_one_time_password_at" t.uuid "journeys_session_id" + t.text "test_column", default: "test" t.index ["academic_year"], name: "index_claims_on_academic_year" t.index ["created_at"], name: "index_claims_on_created_at" t.index ["eligibility_type", "eligibility_id"], name: "index_claims_on_eligibility_type_and_eligibility_id"