jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
593 stars 49 forks source link

Could not find table 'attachments' #82

Closed papertigers closed 5 years ago

papertigers commented 5 years ago

I recently did a git pull of the repo and ran bundle.

Now when I try to sync or create passwords the logs show

2018-10-05 16:59:01 - ActiveRecord::StatementInvalid - Could not find table 'attachments':

If I check via sqlite I can also confirm the table is not there:

sqlite> select * from attachments;
Error: no such table: attachments

Did I somehow miss a step? I have previously done the ActiveRecord migration and rubywarden has been running fine.

jcs commented 5 years ago

Did you run rake db:migrate?

papertigers commented 5 years ago

Nope, that's what I somehow missed. Running env RUBYWARDEN_ENV=production bundle exec rake db:migrate from https://github.com/jcs/rubywarden#updating

Thanks again, sorry to bother you!