Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1711] Drop mid cycle report tables #9460

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions config/analytics_blocklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@
- generation_date
- created_at
- updated_at
:provider_mid_cycle_reports:
- id
- statistics
- publication_date
- provider_id
- created_at
- updated_at
:national_recruitment_performance_reports:
- id
- statistics
Expand All @@ -113,12 +106,6 @@
- generation_date
- created_at
- updated_at
:national_mid_cycle_reports:
- id
- statistics
- publication_date
- created_at
- updated_at
:vendor_api_users:
- id
- full_name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class DropNationalMidCycleReportTable < ActiveRecord::Migration[7.1]
def up
drop_table :national_mid_cycle_reports
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class DropProviderMidCycleReportTable < ActiveRecord::Migration[7.1]
def up
drop_table :provider_mid_cycle_reports
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
19 changes: 1 addition & 18 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_05_28_092412) do
ActiveRecord::Schema[7.1].define(version: 2024_06_12_093136) do
create_sequence "qualifications_public_id_seq", start: 120000

# These are extensions that must be enabled in order to support this database
Expand Down Expand Up @@ -575,13 +575,6 @@
t.date "publication_date"
end

create_table "national_mid_cycle_reports", force: :cascade do |t|
t.json "statistics"
t.date "publication_date"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "national_recruitment_performance_reports", force: :cascade do |t|
t.json "statistics"
t.integer "cycle_week", null: false
Expand Down Expand Up @@ -638,15 +631,6 @@
t.index ["provider_user_id"], name: "index_provider_agreements_on_provider_user_id"
end

create_table "provider_mid_cycle_reports", force: :cascade do |t|
t.json "statistics"
t.date "publication_date"
t.bigint "provider_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["provider_id"], name: "index_provider_mid_cycle_reports_on_provider_id"
end

create_table "provider_recruitment_performance_reports", force: :cascade do |t|
t.bigint "provider_id", null: false
t.json "statistics"
Expand Down Expand Up @@ -915,7 +899,6 @@
add_foreign_key "offers", "application_choices", on_delete: :cascade
add_foreign_key "provider_agreements", "provider_users"
add_foreign_key "provider_agreements", "providers"
add_foreign_key "provider_mid_cycle_reports", "providers"
add_foreign_key "provider_recruitment_performance_reports", "providers"
add_foreign_key "provider_relationship_permissions", "providers", column: "ratifying_provider_id"
add_foreign_key "provider_relationship_permissions", "providers", column: "training_provider_id"
Expand Down
Binary file modified docs/domain-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading