We don't just prefer, but require the use of Postgres #1309
Replies: 5 comments
-
|
@nickcharlton thank you for bringing this up. We're currently working on an internal project to help us re-evaluate our assumptions when it comes to building new Rails 8 applications, and choosing a database is one of the issues I'm most interested in. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I think it's going to be interesting to see what we might like to change. I think in this particular situation, we can be less strict about what we allow to use suspenders, but still push towards Postgres. What do you think? |
Beta Was this translation helpful? Give feedback.
-
I agree. |
Beta Was this translation helpful? Give feedback.
-
|
I was thinking a lot about how to loosen the check instead of simply adding SQLite, but I couldn't come up with a way of doing it. Instead, I started down the path of having a "supported" database, which inspired how #1248 is working. |
Beta Was this translation helpful? Give feedback.
-
|
@nickcharlton noting that the latest release is optimized for Heroku, since that's what we recommend in our playbook. That being said, I think you could just run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on updating a little script I have for testing out Administrate, where I'll go about creating a bunch of small Rails applications for testing. This has one problem of leaving a lot of unused, potentially clashing Postgres databases sitting around.
To work around this problem, I considered using SQLite — especially as there's been significant renewed interest in it up to and including Rails 8.0.
Whilst we prefer Postgres (and I don't see a need to generally diverge from this opinion), the way we've implemented
lib/install/web.rbstops us from using another database type, for example:The implementation of
lib/install/web.rblooks like this:suspenders/lib/install/web.rb
Lines 25 to 33 in a4a4af0
Can anyone think of a better way to do that test in
options[:database], etc? The intention is to see if we should setup and run our suspenders generator, but it's doing more than that.Beta Was this translation helpful? Give feedback.
All reactions