-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unable to run db:migrate #14
Comments
Try swapping the order that you define the reader and writer pools. AR treats the first defined config as the default. |
@fractaledmind Yep, that seems to do the trick. You can close, thanks :-) |
hi Stephen - sent you an email - before I thought of going here - my bad! I'm on the So - could I ask of you to do a 0.6.1 that does exactly that - flips the order - my migrations are 🤮 too |
I am traveling now, but pushed this commit from my phone: 4a25e0e I will release a new version once I get settled. Thanks for reporting the bug |
Impressive!
(Like the implementations)
Thx a bunch,
Walther
… Den 25. apr. 2024 kl. 12.18 skrev Stephen Margheim ***@***.***>:
I am traveling now, but pushed this commit from my phone: 4a25e0e <4a25e0e>
I will release a new version once I get settled. Thanks for reporting the bug
—
Reply to this email directly, view it on GitHub <#14 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABPFXOWBUNPA5JNUL65WX3Y7DKBHAVCNFSM6AAAAABGXLGJA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZWHA2DQMJZGU>.
You are receiving this because you commented.
|
oh - and btw - your "hot fix" - addressing the 'writer' in the CLI does not work - at least not 'with me at the wheel'
|
I removed the gem and "redid" my incantations ( - however, doing a bundle open x, patching the x's and o's by hand, closing everything and having a go at it again, says: all lights are blazing green so - I guess when all the traveling is a wrap - and your bandwidth is a tad bit more than a virtual keyboard on your Nokia 2110 you will inch the version minor and mint a fresh gem for the treasure troves to keep and a huge thank you again! |
hmm - this won't let go
(and it's with the I'll squelch my trompet for now and let you get back to the drawing board - give me a ping when/if you'd like me to take this for a spin |
enough with the squelch -- it's a wrap! I must have smoked some bad sh** (rollbacks works flawless when addressing the writer) or what-not, in any case: the activerecord-enhanced_sqlite3_adapter is a win! ❤️ |
For those getting this issue - what fixed this for me was deleting the |
As the title says, I receive the following in the error log whenever I attempt to run
db:migrate
:ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database
My
database.yml
is setup as follows:The test and production databases are setup accordingly but have been left out for brevity. I was largely following the guide found here. Thanks in advance :-)
The text was updated successfully, but these errors were encountered: