Skip to content
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

Litestack breaks rails database tasks in Rails ~> 7.2 #128

Open
alexspark opened this issue Sep 3, 2024 · 4 comments
Open

Litestack breaks rails database tasks in Rails ~> 7.2 #128

alexspark opened this issue Sep 3, 2024 · 4 comments

Comments

@alexspark
Copy link

alexspark commented Sep 3, 2024

I've tested these set of commands on rails 7.2.1, 7.2.0, and 7.1.3.4 and it only works on 7.1.3.4

  1. rails new litestack-app && cd litestack-app
  2. bundle add litestack
  3. bin/rails g litestack:install
  4. bin/rails db:create

The error I get is on ~> 7.2 versions is as follows:

bin/rails aborted!
NoMethodError: undefined method `sqlite3_production_warning=' for class ActiveRecord::Base (NoMethodError)

Tasks: TOP => db:create => db:load_config
(See full trace by running task with --trace)

I tried to look at the rails 7.2 Changelogs but couldn't find any changes related to that configuration (EDIT: nvm found some changes. see comment below)

@alexspark
Copy link
Author

Rails 7.1.3.4 assigns sqlite3_production_warning to true here, but 7.2 no longer assigns it in that same section of code.

but it's strange that litestack's railtie can even reach the assignment b/c of the key? guard here

@adrienpoly
Copy link
Contributor

This has been fix on main #106
The current solution is to get the gem from the main branch

@Schwad
Copy link

Schwad commented Sep 14, 2024

This has been fix on main #106

Thanks for the tip!

@oldmoe
Copy link
Owner

oldmoe commented Sep 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants