-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
MohammedNazeer10 edited this page Dec 19, 2024
·
1 revision
Activejob::Web is a Rails engine, which means it's a packaged set of functionality that can be easily integrated into a Ruby on Rails application. This engine specifically focuses on providing a web-based dashboard. This dashboard serves the purpose of managing and monitoring background job processing within a Ruby on Rails application
The ActiveJob::Web engine simplifies the execution of active jobs by providing a user-friendly interface accessible through a web browser.
Add this line to your application's Gemfile:
gem "activejob-web"And then execute:
$ bundle installyou need to run the generator:
$ rails generate activejob:web:setupThe generator adds these core files, among others:
-
activejob_web.rb: Initializer file in theconfig/initializersdirectory. -
Migrations in the
db/migratedirectory:create_jobs.rbcreate_activejob_web_job_executions.rbcreate_join_table_job_executors.rbcreate_job_approval_requests.rbcreate_join_table_job_approvers.rbcreate_active_job_web_active_storage_tables.active_storage.rb
Then run:
$ rake db:migrate