-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 7.1 db:create not installing extension #389
Comments
I don’t have access to my computer now, I would find the correct place by following the db create task, found on GitHub: https://github.com/rails/rails/blob/531643244474446efc061b559504ed67acc8cae1/activerecord/lib/active_record/railties/databases.rake#L46C14-L46C14 |
@frehoy are you still in for fixing this ? I think I found the culprit commit: 418c027 The author removed loads of things, including the @keithdoggett another solution would be to remove the documentation saying that the extension will be added, and refer to the other bit of doc saying the user needs to create a migration. Not really the rails magic way, but definitely a faster PR! |
Yes! I'll give it a go this week. |
Thanks for the pointers @BuonOmo, I had a look at 418c027 now and found quite a few tasks. Since I don't know the background of why the tasks were removed I think just making the README consistent is the best course of action right now? I made a PR for that. Adding automagically creating the extensions back seems like a fair bit of work and I'm not sure of how it "should" look. Here's the PR: #392 |
Fixed by #392 Thanks for the help! |
On a fresh new rails app on Rails 7.1.2 with the gem installed and
adapter: postgis
in config/database.yml I runrake db:create
but the postgis extension is not created in the db, but the readme implies it will be:Running a migration with
enable_extension 'postgis'
works fine though.I'd be happy to fix the readme or take a stab at fixing it in code if someone can point me in the right direction, I can't find the code that's supposed to create the extension 😬
The text was updated successfully, but these errors were encountered: