Skip to content

Commit

Permalink
Add unconfirmed_email to spree_users
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aldesantis committed Apr 20, 2020
1 parent 64f9120 commit 38af7f9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class AddUnconfirmedEmailToSpreeUsers < ActiveRecord::Migration[5.2]
def change
unless column_exists?(:spree_users, :unconfirmed_email)
add_column :spree_users, :unconfirmed_email, :string
end
end
end

0 comments on commit 38af7f9

Please sign in to comment.