Skip to content

Commit

Permalink
Finalizing Tigerdata Refactor (#788)
Browse files Browse the repository at this point in the history
Dropping the User Job table, deleting its model and spec. Deleting the Activate Project Request model and spec
 Co-authored-by: Robert-Anthony Lee-Faison <[email protected]>
  • Loading branch information
JaymeeH authored Jun 25, 2024
1 parent 681d6c9 commit 2707e44
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 85 deletions.
3 changes: 0 additions & 3 deletions app/models/activate_project_request.rb

This file was deleted.

29 changes: 0 additions & 29 deletions app/models/user_job.rb

This file was deleted.

5 changes: 5 additions & 0 deletions db/migrate/20240625182512_drop_user_jobs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class DropUserJobs < ActiveRecord::Migration[7.0]
def change
drop_table(:user_jobs)
end
end
13 changes: 1 addition & 12 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tasks/cleanup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace :mediaflux do
puts message
Rails.logger.warn message
Mediaflux::Http::NamespaceDestroyRequest.new(session_token: session_id, namespace: Rails.configuration.mediaflux[:api_root_ns]).destroy
[UserJob, User, Project].each(&:delete_all)
[UserRequest, User, Project].each(&:delete_all)
# Now load the users for this environment from the registration list
Rake::Task["load_users:from_registration_list"].execute
end
Expand Down
21 changes: 0 additions & 21 deletions spec/models/activate_project_request_spec.rb

This file was deleted.

19 changes: 0 additions & 19 deletions spec/models/user_job_spec.rb

This file was deleted.

0 comments on commit 2707e44

Please sign in to comment.