Skip to content

Commit 79f7c97

Browse files
authored
Merge pull request rails#54294 from takmar/create-database-in-plugin-documantation
[ci skip] Add instructions for setting up the testing database in plugin docs
2 parents 568013e + 361a491 commit 79f7c97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

guides/source/plugins.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ spec.metadata["changelog_uri"] = "http://example.com"
6868

6969
Then run the `bundle install` command.
7070

71+
After that, set up your testing database by navigating to the `test/dummy` directory and running the following command:
72+
73+
```bash
74+
$ cd test/dummy
75+
$ bin/rails db:create
76+
```
77+
78+
Once the database is created, return to the plugin's root directory (`cd ../..`).
79+
7180
Now you can run the tests using the `bin/test` command, and you should see:
7281

7382
```bash

0 commit comments

Comments
 (0)