ledermann/unread

UnreadMigration timestamp column without precision option for rails 6

naoufalelh opened this issue · 1 comments

timestamp column in UnreadMigration should contain a precision 6 to make this gem works in Rails 6 (no precision in Rails 5.2, check this issue in Rails).

To fix this, you just need to change the column after generating UnreadMigration and make it like the following:

t.datetime "timestamp", precision: 6, null: false

Rails 6.0.2.1
Ruby 2.6.5

Had a problem with NULL in timestamp.
This change just triggered the NULL false error.