Skip to content

Commit

Permalink
Merge pull request #1350 from koffeinfrei/patch-1
Browse files Browse the repository at this point in the history
Add specific instructions for MySQL migration
  • Loading branch information
tlynam committed Oct 29, 2021
2 parents 55cd4ad + 0ab6573 commit 7484eff
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 7484eff

Please sign in to comment.