Skip to content

Commit

Permalink
Add migration to 42 ex (#408)
Browse files Browse the repository at this point in the history
* remind users to run the migration

* Ensured DJ migration is in correct place

* Re-add schema

* Indentation
  • Loading branch information
Cawllec committed Dec 21, 2017
1 parent 221b46d commit 5aec7d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions example/rails-42/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ There are two methods of configuring Bugsnag within a Rails application:

This is sufficient to start reporting unhandled exceptions to Bugsnag.


## Running the example

Run the example using:
Expand All @@ -34,6 +35,11 @@ Once the server is running head to the default path for more information on Bugs

# Running delayed job

To run the delayed job example you'll need to first run a database migration:
```shell
bundle exec rake db:migrate
```

This example comes packaged with a delayed job setup to demonstrate how errors are reported through delayed job. Once the rails setup is complete with an initializer at ```config/initializers/bugsnag.rb``` you don't need to do anything else with delayed job, just run the examples!

The examples can be found at ```app/helpers/test_delayed_job_helper```
Expand Down
2 changes: 1 addition & 1 deletion example/rails-42/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20171006132129) do

create_table "delayed_jobs", force: :cascade do |t|
t.integer "priority", default: 0, null: false
t.integer "attempts", default: 0, null: false
Expand Down

0 comments on commit 5aec7d5

Please sign in to comment.