I need to add a confirmation email functionality to a model in a Rails Application, but nothing else. It is not a User model, it is not authenticable.
I added devise :confirmable
to the Model, and ran the migration:
class AddConfirmableToProjects < ActiveRecord::Migration
def up
add_column :projects, :confirmation_token, :string
add_column :projects, :confirmed_at, :datetime
add_column :projects, :confirmation_sent_at, :datetime
add_index :projects, :confirmation_token, :unique => true
end
def down
remove_column :projects, :confirmation_token, :confirmed_at, :confirmation_sent_at
end
end
But when I create a new Project I get: Could not find a valid mapping for #<Project...