mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 05:43:41 +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
|
end
|
||||||
|
|
||||||
def self.remove(plugin_name, key)
|
def self.remove(plugin_name, key)
|
||||||
if row = PluginStoreRow.where(plugin_name: plugin_name, key: key).first
|
PluginStoreRow.where(plugin_name: plugin_name, key: key).destroy_all
|
||||||
row.destroy
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user