mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05: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
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue