I am using Rails 3. There is a possible duplicate here. But it did not solve my problem, neither did any other solution.
My migration is as follows
class
To tie in @DevDude's answer with the accepted answer - if you already have an existing Users
model to which you need to add confirmable, the full migration code for the version of Devise current as of 4/14 is:
class AddConfirmableToDeviseV1 < ActiveRecord::Migration
def change
change_table(:users) do |t|
# Confirmable
t.string :confirmation_token
t.datetime :confirmed_at
t.datetime :confirmation_sent_at
t.string :unconfirmed_email # Only if using reconfirmable
end
add_index :users, :confirmation_token, :unique => true
end
end