undefined local variable or method `confirmed_at' for #User

后端 未结 5 1129
一个人的身影
一个人的身影 2021-01-31 10:43

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         


        
5条回答
  •  无人共我
    2021-01-31 11:07

    As of the latest devise, you just need to remove comments from the following lines on the devise users migration.. (2013....._devise_create_users.rb)

      # Confirmable
      t.string   :confirmation_token
      t.datetime :confirmed_at
      t.datetime :confirmation_sent_at
      t.string   :unconfirmed_email # Only if using reconfirmable
    

提交回复
热议问题