Skip to content

Commit

Permalink
remove user philimonov
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Nov 17, 2023
1 parent 053dc2e commit 3d0852b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions db/migrate/20231117154953_remove_user_vadim_philimonov.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class RemoveUserVadimPhilimonov < ActiveRecord::Migration[7.0]
def change
user = User.find_by(email: '[email protected]')

return unless user

user.resumes.each do |resume|
resume.answers.each(&:destroy!)
resume.destroy!
end

user.notifications.each(&:destroy!)

user.destroy!
end
end
2 changes: 1 addition & 1 deletion 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_11_14_203105) do
ActiveRecord::Schema[7.0].define(version: 2023_11_17_154953) do
create_table "career_items", force: :cascade do |t|
t.integer "order"
t.integer "career_id", null: false
Expand Down

0 comments on commit 3d0852b

Please sign in to comment.