devise :reconfirmable in model causes migration error

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?

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

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.

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