undefined local variable or method `confirmed_at' for #User

后端 未结 5 1126
一个人的身影
一个人的身影 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 10:53

    I'm using Mongoid and got this same error. I added these fields and got rspec to go green on my 16 examples.

    field :confirmation_token,   :type => String
    field :confirmed_at,         :type => Time
    field :confirmation_sent_at, :type => Time
    field :unconfirmed_email,    :type => String
    

提交回复
热议问题