mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:13:38 +08:00
clean up plugin store when removing data instead of setting the value to nil and do it a reasonable way.
This commit is contained in:
parent
db411860c2
commit
dfa6960799
|
@ -23,9 +23,7 @@ class PluginStore
|
|||
end
|
||||
|
||||
def self.remove(plugin_name, key)
|
||||
if row = PluginStoreRow.where(plugin_name: plugin_name, key: key).first
|
||||
row.destroy
|
||||
end
|
||||
PluginStoreRow.where(plugin_name: plugin_name, key: key).destroy_all
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user