Browse Source

feat: add timestamps to readmark table

pull/2131/head
natdeanlewissoftwire 2 years ago
parent
commit
70db5554e1
  1. 1
      db/migrate/20240108152935_unread_migration.rb

1
db/migrate/20240108152935_unread_migration.rb

@ -4,6 +4,7 @@ class UnreadMigration < ActiveRecord::Migration[6.0]
t.references :readable, polymorphic: { null: false }
t.references :reader, polymorphic: { null: false }
t.datetime :timestamp, null: false
t.timestamps
end
add_index ReadMark, %i[reader_id reader_type readable_type readable_id], name: "read_marks_reader_readable_index", unique: true

Loading…
Cancel
Save