Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3680700
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:36:25+00:00 2026-05-19T03:36:25+00:00

A number of Rails 2.3 apps are using Restful Authentication but that plugin seems

  • 0

A number of Rails 2.3 apps are using Restful Authentication but that plugin seems to have some issues with Rails 3. In upgrading to Rails 3 I have been using Devise. Is there any way to smoothly transition from Restful Authentication to Devise? Has anyone done a migration that shows how to update the User model?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:36:26+00:00Added an answer on May 19, 2026 at 3:36 am

    I updated my application from Restful Authentication to Devise already. Here is my migration:

    class AlterUsersForDevise < ActiveRecord::Migration
      def self.up
        remove_column :users, :name
        change_column :users, :email, :string, :default => "", :null => false, :limit => 128
        rename_column :users, :crypted_password, :encrypted_password
        change_column :users, :encrypted_password, :string, :limit => 128, :default => "", :null => false
        rename_column :users, :salt, :password_salt
        change_column :users, :password_salt, :string, :default => "", :null => false, :limit => 255
        add_column :users, :reset_password_token, :string
        change_column :users, :remember_token, :string, :limit => 255
        rename_column :users, :remember_token_expires_at, :remember_created_at
    
        add_column :users, :sign_in_count, :integer, :default => 0
        add_column :users, :current_sign_in_at, :datetime
        add_column :users, :last_sign_in_at, :datetime
        add_column :users, :current_sign_in_ip, :string
        add_column :users, :last_sign_in_ip, :string
    
        rename_column :users, :activation_code, :confirmation_token
        change_column :users, :confirmation_token, :string, :limit => 255
        rename_column :users, :activated_at, :confirmed_at
    
        add_column :users, :confirmation_sent_at, :datetime
      end
    
      def self.down
        add_column :users, :name, :string, :limit => 100, :default => ""
        rename_column :users, :encrypted_password, :crypted_password
        change_column :users, :crypted_password, :string, :limit => 40
        rename_column :users, :password_salt, :salt
        change_column :users, :salt, :string, :limit => 40
        remove_column :users, :reset_password_token
        change_column :users, :remember_token, :string, :limit => 40
        rename_column :users, :remember_created_at, :remember_token_expires_at
    
        remove_column :users, :sign_in_count
        remove_column :users, :current_sign_in_at
        remove_column :users, :last_sign_in_at
        remove_column :users, :current_sign_in_ip
        remove_column :users, :last_sign_in_ip
    
        rename_column :users, :confirmation_token, :activation_code
        change_column :users, :confirmation_token, :string, :limit => 40
        rename_column :users, :confirmed_at, :activated_at
    
        remove_column :users, :confirmation_sent_at
      end
    end
    

    My application isn’t live so far. So i use the password encryption from Devise instead the one from Restful Authorization. If you application is already alive, and you have active users you should configure Devise to use SHA1 from Restful Authentication to en- and decrypt passwords. Otherwise all your users must request a new password.

    You can configure this in the devise initializer.

    Hope that helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Specifically, I have a number of pages in my Rails app that use the
I have a number of controllers in my Ruby on Rails apps with a
Using Rails 3 I have a number of model containing serialized attributes. To perform
I have a simple Rails 3 application that has a number of models. A
I have a Rails app that processes a large (millions) number of records in
I have this Rails app that can be spawned (by Passenger) a number of
I have two rails apps that I am thinking about merging into one because
Is there a way to have rails print out a number with commas in
A number of times I've argued that using clone() isn't such a bad practice.
I have a number of Rails 3.1 applications running on a local server, remote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.