discourse/db/migrate/20180127005644_remove_old_ga_site_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
317 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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