mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-02-04 23:41:12 +00:00
Fix migration for readings
This commit is contained in:
parent
7ae3487d59
commit
5c60ee7013
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class MoveReadingsToReadMarks < ActiveRecord::Migration[6.0]
|
|||
def change
|
||||
# execute "TRUNCATE read_marks"
|
||||
execute "INSERT INTO read_marks (readable_type, readable_id, reader_type, reader_id, timestamp)
|
||||
SELECT readable_type, readable_id, "User", user_id, updated_at
|
||||
SELECT readable_type, readable_id, 'User', user_id, updated_at
|
||||
FROM readings;"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue