Skip to content

Commit

Permalink
Introduce railsrc
Browse files Browse the repository at this point in the history
Introduces [railsrc][1] in an effort to prepare for the eventual
[removal of the suspenders executable][2].

With this change, calling `rails new` will automatically set the
following options:

```
--database=postgresql
```

[1]: https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7
[2]: https://github.com/thoughtbot/suspenders/blob/main/GOALS.md#from-here-to-there
  • Loading branch information
stevepolitodesign committed Oct 20, 2023
1 parent 155e855 commit ba1c40e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ configuration:
- Add trusted binstubs to the `PATH`.
- Load the ASDF version manager.

[Rails](https://rubyonrails.org)

- Adds [railsrc][] with `--database=postgresql` and `--css=tailwind`.

[railsrc]: https://github.com/rails/rails/blob/7f7f9df8641e35a076fe26bd097f6a1b22cb4e2d/railties/lib/rails/generators/rails/app/USAGE#L5C1-L7

Shell aliases and scripts:

- `b` for `bundle`.
Expand Down
1 change: 1 addition & 0 deletions railsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--database=postgresql

0 comments on commit ba1c40e

Please sign in to comment.