mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +08:00
Woops, almost forgot on this one
This commit is contained in:
parent
8d68769d09
commit
e3b9c1c644
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class AssetTextDatum < ApplicationRecord
|
|||
after_save :update_ts_index
|
||||
|
||||
def update_ts_index
|
||||
if data_changed?
|
||||
if saved_change_to_data?
|
||||
sql = "UPDATE asset_text_data " +
|
||||
"SET data_vector = to_tsvector(data) " +
|
||||
"WHERE id = " + Integer(id).to_s
|
||||
|
|
Loading…
Reference in a new issue