mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-10 07:37:25 +00:00
Upgraded to rails 8.0.2, moved from dalli to solid cache, moved from delayed_job to solid queue, and add solid cable. deploy/rails-dev-run.sh no longer needs to chmod. Fixed finished_at callback for matches. Migrated from Devise to built in rails auth. Added view tests for the bracket page testing that all bout numbers render for all matches in each bracket type.
This commit is contained in:
32
db/migrate/20250405160115_remove_delayed_job.rb
Normal file
32
db/migrate/20250405160115_remove_delayed_job.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
class RemoveDelayedJob < ActiveRecord::Migration[8.0]
|
||||
def up
|
||||
# Check if delayed_jobs table exists before trying to drop it
|
||||
if table_exists?(:delayed_jobs)
|
||||
drop_table :delayed_jobs
|
||||
puts "Dropped delayed_jobs table"
|
||||
else
|
||||
puts "delayed_jobs table doesn't exist, skipping"
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
# Recreate delayed_jobs table if needed in the future
|
||||
create_table :delayed_jobs, force: true do |table|
|
||||
table.integer :priority, default: 0, null: false
|
||||
table.integer :attempts, default: 0, null: false
|
||||
table.text :handler, limit: 4294967295
|
||||
table.text :last_error
|
||||
table.datetime :run_at, precision: nil
|
||||
table.datetime :locked_at, precision: nil
|
||||
table.datetime :failed_at, precision: nil
|
||||
table.string :locked_by
|
||||
table.string :queue
|
||||
table.datetime :created_at, precision: nil
|
||||
table.datetime :updated_at, precision: nil
|
||||
table.integer :job_owner_id
|
||||
table.string :job_owner_type
|
||||
|
||||
table.index [:priority, :run_at], name: "delayed_jobs_priority"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user