Devise :reconfirmable in model causes migration error

i get uninitialized constant reconfirmable when i run the migration

On 21 December 2015 at 10:51, fugee ohu [email protected] wrote:

i get uninitialized constant reconfirmable when i run the migration

I imagine that in user.rb you have specified devise :reconfirmable.
If so are you sure that is a valid option?

If it is not that then show us user.rb

Colin

It may not be a valid option Maybe it should only be specified as
reconfirmable=true in devise.rb and not in the model

It seems clear that it’s a bug in devise which causes devise to omit the
required column unconfirmed_email from the table when it generates the
migration The workaround’s easy enough, just do it myself, but shouldn’t
this be fixed by now and why am i the only one who cares?

On Mon, Dec 21, 2015 at 8:14 AM, fugee ohu [email protected] wrote:

It seems clear that it’s a bug in devise

Well, no, it doesn’t actually :slight_smile:

If you want the “confirmable” behavior, you need to explicitly enable
that in both your model and in the migration - it’s commented out by
default.


Hassan S. ------------------------ [email protected]

twitter: @hassan
Consulting Availability : Silicon Valley or remote

On 21 December 2015 at 16:12, fugee ohu [email protected] wrote:

It may not be a valid option Maybe it should only be specified as
reconfirmable=true in devise.rb and not in the model

I believe that is the case. It is a configuration option on devise,
not on the user.

Colin

yikes … thanks, i think i should have read the migrations, thanks
again