From 27c4280eca8472415fe72134ba962c48a7fcb4e6 Mon Sep 17 00:00:00 2001 From: postmodern Date: Wed, 31 Mar 2010 20:48:25 -0700 Subject: [PATCH] Expend the length of the encrypted_password field to 128 to allow storing BCrypt or SHA512 passwords. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- lib/devise/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise/schema.rb b/lib/devise/schema.rb index 260b43e8..e82c8372 100644 --- a/lib/devise/schema.rb +++ b/lib/devise/schema.rb @@ -22,7 +22,7 @@ module Devise end apply_schema :email, String, :null => null, :default => default - apply_schema :encrypted_password, String, :null => null, :default => default + apply_schema :encrypted_password, String, :null => null, :default => default, :limit => 128 apply_schema :password_salt, String, :null => null, :default => default end