I have a simple model called PhoneNumber:
class PhoneNumber < ActiveRecord::Base validates :pnumber, presence: true, on: :create #=> { :message =>
I had a similar error, but it was because I had created a has_one relationship and subsequently deleted the model that it had_one of. I just forgot to delete the has_one relationship from the remaining model.
has_one
had_one