discourse/db/migrate/20140725050636_remove_invalid_incoming_links.rb

5 lines
154 B
Ruby

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