Skip to content

736 Delete expertise topics and connections #885

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 app/controllers/api/expertise_categories_controller.rb

This file was deleted.

14 changes: 0 additions & 14 deletions app/controllers/api/expertise_topic_skill_values_controller.rb

This file was deleted.

13 changes: 0 additions & 13 deletions app/controllers/api/expertise_topics_controller.rb

This file was deleted.

97 changes: 0 additions & 97 deletions app/exporters/odt/fws.rb

This file was deleted.

26 changes: 0 additions & 26 deletions app/models/expertise_category.rb

This file was deleted.

27 changes: 0 additions & 27 deletions app/models/expertise_topic.rb

This file was deleted.

40 changes: 0 additions & 40 deletions app/models/expertise_topic_skill_value.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class Person < ApplicationRecord
has_many :activities, dependent: :destroy
has_many :advanced_trainings, dependent: :destroy
has_many :educations, dependent: :destroy
has_many :expertise_topic_skill_values, dependent: :destroy
has_many :expertise_topics, through: :expertise_topic_skill_values
has_many :language_skills, dependent: :delete_all
accepts_nested_attributes_for :language_skills, allow_destroy: true
has_many :person_roles, dependent: :destroy
Expand Down
15 changes: 0 additions & 15 deletions app/serializers/expertise_category_serializer.rb

This file was deleted.

18 changes: 0 additions & 18 deletions app/serializers/expertise_topic_serializer.rb

This file was deleted.

22 changes: 0 additions & 22 deletions app/serializers/expertise_topic_skill_value_serializer.rb

This file was deleted.

3 changes: 0 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@
resources :companies
resources :departments, only: :index
resources :educations
resources :expertise_categories
resources :expertise_topics
resources :expertise_topic_skill_values
resources :languages, only: :index
resources :language_skills
resources :people_skills
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20250512080030_remove_expertise.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RemoveExpertise < ActiveRecord::Migration[8.0]
def change
drop_table :expertise_categories, :expertise_topics, :expertise_topic_skill_values
end
end
26 changes: 1 addition & 25 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[8.0].define(version: 2025_03_25_145055) do
ActiveRecord::Schema[8.0].define(version: 2025_05_12_080030) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"

Expand Down Expand Up @@ -113,30 +113,6 @@
t.index ["person_id"], name: "index_educations_on_person_id"
end

create_table "expertise_categories", force: :cascade do |t|
t.string "name", null: false
t.integer "discipline", null: false
end

create_table "expertise_topic_skill_values", force: :cascade do |t|
t.integer "years_of_experience"
t.integer "number_of_projects"
t.integer "last_use"
t.integer "skill_level"
t.string "comment"
t.bigint "person_id", null: false
t.bigint "expertise_topic_id", null: false
t.index ["expertise_topic_id"], name: "index_expertise_topic_skill_values_on_expertise_topic_id"
t.index ["person_id"], name: "index_expertise_topic_skill_values_on_person_id"
end

create_table "expertise_topics", force: :cascade do |t|
t.string "name", null: false
t.boolean "user_topic", default: false
t.bigint "expertise_category_id", null: false
t.index ["expertise_category_id"], name: "index_expertise_topics_on_expertise_category_id"
end

create_table "language_skills", force: :cascade do |t|
t.string "language"
t.string "level"
Expand Down
Loading