From ec2b9dff8fc98be2a163b64835e18ccec330b8cc Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Tue, 10 Oct 2023 13:59:17 -0500 Subject: [PATCH] Drop old unused tables These two tables seem to be remnanats of something that's been removed. --- ...p_memberships_reassignments_assignments.rb | 6 ++++++ db/schema.rb | 21 +------------------ 2 files changed, 7 insertions(+), 20 deletions(-) create mode 100644 db/migrate/20231010185825_drop_memberships_reassignments_assignments.rb diff --git a/db/migrate/20231010185825_drop_memberships_reassignments_assignments.rb b/db/migrate/20231010185825_drop_memberships_reassignments_assignments.rb new file mode 100644 index 000000000..802e39ca0 --- /dev/null +++ b/db/migrate/20231010185825_drop_memberships_reassignments_assignments.rb @@ -0,0 +1,6 @@ +class DropMembershipsReassignmentsAssignments < ActiveRecord::Migration[7.0] + def change + drop_table :memberships_reassignments_assignments + drop_table :memberships_reassignments_scaffolding_completely_concrete_tangi + end +end diff --git a/db/schema.rb b/db/schema.rb index 6a5e5e255..665761636 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: 2023_08_19_123854) do +ActiveRecord::Schema[7.0].define(version: 2023_10_10_185825) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -127,22 +127,6 @@ t.index ["user_id"], name: "index_memberships_on_user_id" end - create_table "memberships_reassignments_assignments", force: :cascade do |t| - t.bigint "membership_id", null: false - t.bigint "scaffolding_completely_concrete_tangible_things_reassignments_i" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["membership_id"], name: "index_memberships_reassignments_assignments_on_membership_id" - t.index ["scaffolding_completely_concrete_tangible_things_reassignments_i"], name: "index_assignments_on_tangible_things_reassignment_id" - end - - create_table "memberships_reassignments_scaffolding_completely_concrete_tangi", force: :cascade do |t| - t.bigint "membership_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["membership_id"], name: "index_tangible_things_reassignments_on_membership_id" - end - create_table "oauth_access_grants", force: :cascade do |t| t.bigint "resource_owner_id", null: false t.bigint "application_id", null: false @@ -375,9 +359,6 @@ add_foreign_key "memberships", "oauth_applications", column: "platform_agent_of_id" add_foreign_key "memberships", "teams" add_foreign_key "memberships", "users" - add_foreign_key "memberships_reassignments_assignments", "memberships" - add_foreign_key "memberships_reassignments_assignments", "memberships_reassignments_scaffolding_completely_concrete_tangi", column: "scaffolding_completely_concrete_tangible_things_reassignments_i" - add_foreign_key "memberships_reassignments_scaffolding_completely_concrete_tangi", "memberships" add_foreign_key "oauth_access_grants", "oauth_applications", column: "application_id" add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id" add_foreign_key "oauth_applications", "teams"