-
Notifications
You must be signed in to change notification settings - Fork 899
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
Table 'db.versions' doesn't exist: SHOW FULL FIELDS FROM versions
#401
Comments
What happens if you remove the line to eager load the rails engine? Does Sent from my iPhone On Jul 24, 2014, at 12:25 PM, stan Mazurek [email protected] wrote: Papertrail 3.0.3 and Rails 4.1.4 Using only custom version classes, getting ActiveRecord::StatementInvalid config/initializers/paper_trail.rbthe following line is required for PaperTrail >= 3.0.3 with RailsPaperTrail::Rails::Engine.eager_load! PaperTrail::Version.module_eval do I do not want to create a dummy versions table. Works fine in 3.0.2 — |
Same issue without the eager load line (just added it after I saw b9b0d17 but didn't help) |
Can you actually try putting the eager load line AFTER the Also can you go into detail a bit more about how to reproduce? This happens when you are running the rails server and you modify a model and save it? Which models are you modifying and how? I just ran a local app and wasn't able to reproduce.. |
Same thing when putting the eager load line after the I have a Team model (among others) using PaperTrail
Starting rails server with Hope this helps. |
I can confirm this issue (with rails 4.1.4 and ruby 2.1.2). I can also reproduce it by changing a locale yml ( |
Can you guys reproduce this with PaperTrail version I'm considering yanking PaperTrail |
Only happens with 3.0.3 Would make sense considering it's a patch release. |
I can also reproduce it on 3.0.3 (rails 4.1.4, ruby 2.1.2) with inconsistent results. It appears that restarting the server after setting Repo steps on 3.0.3 for a UpdateVersion class and Table:
Repo steps on 3.0.2 for a UpdateVersion class and Table
So with 3.0.3 it appears to work once you restart, while with 3.0.2 works by just changing the table_name variable to the correct value. Hope that helps. |
Yea I'm not sure if you can change the |
At least in development, you can set and change |
Running into the same problem here on rails 3.2.19. Restarting the server didn't help for us. Downgrading to 3.0.2 got us the error |
I also have the same problem. ActiveRecord::StatementInvalid - Mysql2::Error: Table 'app.versions' doesn't exist: SHOW FULL FIELDS FROM rails 3.2.18 |
Please try version |
Issue is back (4.0.0.rc1 / ruby 2.1.5 / Rails 4.2.2) - fixed for me by #492 |
Papertrail 3.0.3 and Rails 4.1.4
Using only custom version classes, getting
ActiveRecord::StatementInvalid (Mysql2::Error: Table 'db.versions' doesn't exist: SHOW FULL FIELDS FROM versions)
error every time a change is made to a model in development (need to restart dev env to fix), despite using the recommended initializer:I do not want to create a dummy versions table. Works fine in 3.0.2
The text was updated successfully, but these errors were encountered: