I rebuilt my application from scratch, and in that process, I changed the database from MongoDB to PostgreSQL. I've got existing users who signed up via Devise on the MongoDB database and would like to transfer them to the PostgreSQL database, which is also using Devise.
Is this possible, and if so, how? From a preliminary test of creating users with the same email and password in each version of the application, the encrypted_password is different.
Related
A rails application is running an old version and needs to jump multiple generations. In addition, users were managed by devise in multiple tables, when the target is now to unify them.
The problem lies with databases and legacy encrypted passwords. The documentation provides indication as to legacy migration TO devise , but not devise-to-devise. While the db has the encrypted_password attribute, can this be carried over to a new database (seemlessly to the user) and how?
I have a simple app where 200 people registered via facebook or normal email login. I wrote another version of the same app and deployed it to another server with higher RAM.
How do I transfer the user data like login creds to new server? I used Devise gem(if that helps).
PS: My database design also changed a lot.
Devise Gem uses DB to store the encrypted credentials. You would need to migrate the Database if the new machine also has a new DB. But if you are only migrating the application, then you can directly point to the same DB and things should work as they are.
I have a database with hundreds of users on an old Wordpress application that I want to migrate to a new RoR application. I am stuck with the passwords. Wordpress has a different encryption than Devise. Its pattern starts with "$P$".
How can I do to create a custom encryptor/digest for my Devise User model to authenticate the old passwords?
I have a Rails app that successfully talks to a Postgres database. The app has full Postgres access rights and is successfully talking to the database.
I use Devise to authenticate my users. I know this is independent of PG but I mention it to make what I want below somewhat clearer.
The app maintains a (Devise) table of users. The app has several users and I want to have each user have different access (roles?) to the database.
I want to create a sandbox where User can issue PG commands but has, for instance, only readonly access rights to the database.
How do I do this. I've searched Google for several hours but I've come up with zilch.
I'm new to developing Ruby On Rails but have started creating a website for a mobile application that my friends are making. They are storing all of the data (Usernames, photos, posts...) on firebase (firebase.com) so we can all access it.
In broad terms I'm trying to figure out how to implement a lot of this with Ruby On Rails. Looking at most tutorials for rails, it seems like they assume the website has its own database. For instance when a user signs in, I use the user model to save the name, email and password. However this saves it to the rails database and not to firebase where all of the current usernames and passwords are stored. Should I ignore the standard rails method for user authentication and just sign the user into firebase or should I save this data to the rails database. If so, how to I keep that database in sync with firebase?