diff --git a/lib/generators/paper_trail/install/templates/create_versions.rb.erb b/lib/generators/paper_trail/install/templates/create_versions.rb.erb index 268d92909..677d1b731 100644 --- a/lib/generators/paper_trail/install/templates/create_versions.rb.erb +++ b/lib/generators/paper_trail/install/templates/create_versions.rb.erb @@ -28,7 +28,9 @@ class CreateVersions < ActiveRecord::Migration<%= migration_version %> # MySQL users should also upgrade to at least rails 4.2, which is the first # version of ActiveRecord with support for fractional seconds in MySQL. # (https://github.com/rails/rails/pull/14359) - # + # + # MySQL users should use the following line for `created_at` + # t.datetime :created_at, limit: 6 t.datetime :created_at end add_index :versions, %i(item_type item_id)