discourse/db/migrate/20140725050636_remove_invalid_incoming_links.rb

6 lines
154 B
Ruby
Raw Normal View History

class RemoveInvalidIncomingLinks < ActiveRecord::Migration
def change
execute "DELETE FROM incoming_links WHERE url ILIKE '%avatar%.png'"
end
end