We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
If you are adding public_activity to an existing app you may have old models that you'd like to fill-in the activity for.
public_activity
Here's a simple migration that will fill in the create activity for all comments that existed on your site.
class BackfillActivity < ActiveRecord::Migration def up Comment.find_each do |comment| comment.create_activity :create, created_at: comment.created_at, updated_at: comment.created_at end end def down PublicActivity::Activity.delete_all end end