diff --git a/db/migrate/20141209041241_drop_open_graph_caches_with_invalid_urls.rb b/db/migrate/20141209041241_drop_open_graph_caches_with_invalid_urls.rb new file mode 100644 index 000000000..bfbfab884 --- /dev/null +++ b/db/migrate/20141209041241_drop_open_graph_caches_with_invalid_urls.rb @@ -0,0 +1,9 @@ +class DropOpenGraphCachesWithInvalidUrls < ActiveRecord::Migration + def up + OpenGraphCache.where(url: 'http://').delete_all + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index d68d473ee..497151fd5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141024170120) do +ActiveRecord::Schema.define(version: 20141209041241) do create_table "account_deletions", force: true do |t| t.string "diaspora_handle"