mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 02:55:43 +08:00
Remove stale GA site setting records from the DB.
This commit is contained in:
parent
2d340d1122
commit
55f47491a4
10
db/migrate/20180127005644_remove_old_ga_site_settings.rb
Normal file
10
db/migrate/20180127005644_remove_old_ga_site_settings.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class RemoveOldGaSiteSettings < ActiveRecord::Migration[5.1]
|
||||
def up
|
||||
execute "DELETE FROM site_settings WHERE name = 'ga_tracking_code'"
|
||||
execute "DELETE FROM site_settings WHERE name = 'ga_domain_name'"
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user