<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw" -->

---
title: Migrate from Devise to Rails authentication generator
description: A practical guide to migrating from Devise to Rails 8's built-in authentication generator. Covers the full migration process including running the generator,...
canonical: https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Migrate from Devise to Rails authentication generator | daily.dev
og:description: A practical guide to migrating from Devise to Rails 8's built-in authentication generator. Covers the full migration process including running the generator,...
og:url: https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw
og:image: https://api.daily.dev/og/posts/4uLkcxakw.png
og:image:alt: Migrate from Devise to Rails authentication generator
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from Devise to Rails authentication generator

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 4 min read · 0 upvotes · 0 comments

## Summary

A practical guide to migrating from Devise to Rails 8's built-in authentication generator. Covers the full migration process including running the generator, creating a database migration to rename columns and remove Devise-specific fields, restoring the User model with has_secure_password, updating routes, adding current_user helpers to ApplicationController, fixing test helpers and fixtures, replacing Devise path helpers in views, updating system tests to remove Warden dependency, and finally removing the Devise gem entirely.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nithinbekal.com/posts/devise-to-rails-auth/>

## Similar posts on daily.dev

- [Rails 8 Authentication: Why the New Built-in Generator Matters \(and What It Means for Devise\)](https://daily.dev/posts/rails-8-authentication-why-the-new-built-in-generator-matters-and-what-it-means-for-devise--t3hvupk92) · Ruby Flow · 0 upvotes · 0 comments
- [Rails 8 Built-in Auth vs. Devise: Why the Default Finally Wins](https://daily.dev/posts/rails-8-built-in-auth-vs-devise-why-the-default-finally-wins-avm1gdila) · Ruby Flow · 0 upvotes · 0 comments
- [Upgrading from Rails 7.2 to Rails 8 - The Latest and Greatest](https://daily.dev/posts/upgrading-from-rails-7-2-to-rails-8---the-latest-and-greatest-llm9qhuca) · Saeloun · 0 upvotes · 0 comments
- [Upgrade Rails From 8.0 to 8.1 - FastRuby.io](https://daily.dev/posts/upgrade-rails-from-8-0-to-8-1---fastruby-io-oiayukzim) · RUBYLAND · 0 upvotes · 0 comments
- [Testing authentication in Rails](https://daily.dev/posts/testing-authentication-in-rails-myv1qpxbt) · Ruby Flow · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#authentication](https://daily.dev/tags/authentication), [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails)

[View this post on daily.dev](https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Migrate from Devise to Rails authentication generator","url":"https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw"},"datePublished":"2026-03-24T05:32:01.145Z","dateModified":"2026-03-24T05:32:22.847Z","description":"A practical guide to migrating from Devise to Rails 8's built-in authentication generator. Covers the full migration process including running the generator,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d2332e106952efd739a447741458d1fa?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d2332e106952efd739a447741458d1fa?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/migrate-from-devise-to-rails-authentication-generator-4ulkcxakw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,authentication,ruby,rails","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"Migrate from Devise to Rails authentication generator"}]}
```

