Skip to content

Commit

Permalink
remove resume column
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Dec 20, 2023
1 parent 1b05c42 commit 3a4a7e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/models/resume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class Resume < ApplicationRecord

mark_as_outdated :hexlet_url, :awards_description

self.ignored_columns += %w[about_my_self project_descriptions]

has_paper_trail
is_impressionable counter_cache: true

Expand Down
6 changes: 6 additions & 0 deletions db/migrate/20231220104452_remove_columns_to_resume.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class RemoveColumnsToResume < ActiveRecord::Migration[7.0]
def change
remove_column :resumes, :about_my_self, :text
remove_column :resumes, :project_descriptions, :text
end
end
4 changes: 1 addition & 3 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.0].define(version: 2023_12_20_100712) do
ActiveRecord::Schema[7.0].define(version: 2023_12_20_104452) do
create_table "career_items", force: :cascade do |t|
t.integer "order"
t.integer "career_id", null: false
Expand Down Expand Up @@ -230,8 +230,6 @@
t.string "contact_telegram"
t.boolean "evaluated_ai"
t.string "evaluated_ai_state"
t.text "about_my_self"
t.text "project_descriptions"
t.text "projects_description"
t.text "about_myself"
t.index ["user_id"], name: "index_resumes_on_user_id"
Expand Down

0 comments on commit 3a4a7e0

Please sign in to comment.