mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +00:00
Added a separate table to record background job status for tournaments and fixed migrations/schemas for solid dbs. Foreign key constraints are now added to the migrations where we do belongs_to.
This commit is contained in:
27
test/fixtures/tournament_job_statuses.yml
vendored
Normal file
27
test/fixtures/tournament_job_statuses.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model requires tournament, job_name, and status fields
|
||||
|
||||
queued_job:
|
||||
tournament: one
|
||||
job_name: "Test Queued Job"
|
||||
status: "Queued"
|
||||
details: "Test job details"
|
||||
|
||||
running_job:
|
||||
tournament: one
|
||||
job_name: "Test Running Job"
|
||||
status: "Running"
|
||||
details: "Test running job details"
|
||||
|
||||
errored_job:
|
||||
tournament: one
|
||||
job_name: "Test Errored Job"
|
||||
status: "Errored"
|
||||
details: "Test error message"
|
||||
|
||||
another_tournament_job:
|
||||
tournament: two
|
||||
job_name: "Another Tournament Job"
|
||||
status: "Running"
|
||||
details: "Different tournament test"
|
||||
4
test/fixtures/users.yml
vendored
4
test/fixtures/users.yml
vendored
@@ -23,3 +23,7 @@ three:
|
||||
four:
|
||||
email: test4@test.com
|
||||
id: 4
|
||||
|
||||
admin:
|
||||
email: admin@example.com
|
||||
id: 5
|
||||
|
||||
Reference in New Issue
Block a user