An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

AR-MIGRATE: checkout an old commit first then migrate

+16 -5
+16 -5
AR-MIGRATE.md
··· 3 3 ### Migrating From `bitwarden-ruby` to Rubywarden and ActiveRecord 4 4 5 5 If you've used this application before it switched to using ActiveRecord 6 - (when it was called `bitwarden-ruby`), 7 - you need to do the following steps to migrate the data and generate the new 8 - table structures. 6 + (when it was called `bitwarden-ruby`), you need to do the following steps to 7 + migrate the data and generate the new table structures. 9 8 10 9 Even though the migration script will import to a new database file at a 11 10 different path, it is probably best to create a backup yourself. ··· 18 17 19 18 git pull 20 19 21 - Afterwards you need to run bundle to add some required libraries for the migration 20 + Then checkout to a specific revision where the migration was made: 21 + 22 + git checkout 40044728d 23 + 24 + Run `bundle` to add some required libraries for the migration: 22 25 23 26 bundle --with migrate 24 27 ··· 43 46 related. 44 47 45 48 It is recommended to follow the 46 - [initial installation instructions](https://github.com/jcs/rubywarden#usage) 49 + [initial installation instructions](https://github.com/jcs/rubywarden#manual-setup) 47 50 to create a new, unprivileged user to own the new `db/production/` database 48 51 and run the server. 52 + 53 + Lastly, update to the current code: 54 + 55 + git checkout master 56 + 57 + And then follow the 58 + [update instructions](https://github.com/jcs/rubywarden#updating) 59 + to bring your database up to date with the latest migrations.