Skip to content

Commit 38af7f9

Browse files
committed
Add unconfirmed_email to spree_users
Up until now, we have not been adding the unconfirmed_email column to spree_users table. However, this column is required by default when using Devise's :confirmable module, which also activates Devise's :reconfirmable behavior by default, which in turn requires unconfirmed_email.
1 parent 64f9120 commit 38af7f9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class AddUnconfirmedEmailToSpreeUsers < ActiveRecord::Migration[5.2]
2+
def change
3+
unless column_exists?(:spree_users, :unconfirmed_email)
4+
add_column :spree_users, :unconfirmed_email, :string
5+
end
6+
end
7+
end

0 commit comments

Comments
 (0)