diff --git a/db/migrate/30000000000001_add_request_key_to_tandem_contents.rb b/db/migrate/30000000000001_add_request_key_to_tandem_contents.rb
index <HASH>..<HASH> 100644
--- a/db/migrate/30000000000001_add_request_key_to_tandem_contents.rb
+++ b/db/migrate/30000000000001_add_request_key_to_tandem_contents.rb
@@ -3,8 +3,10 @@ class AddRequestKeyToTandemContents < ActiveRecord::Migration
     add_column :tandem_contents, :request_key, :string
     
     Tandem::Content.all.each do |content|
-      page = Tandem::Page.find(content.page_id)
-      content.update_attributes!(:request_key => "tandem-pages-#{page.slug}")
+      if Tandem::Page.exists?(content.page_id)
+        page = Tandem::Page.find(content.page_id)
+        content.update_attributes!(:request_key => "tandem-pages-#{page.slug}")
+      end
     end
 
     remove_index :tandem_contents, :page_id
[Fixes #<I>] Check to see if page exists before updating the associated content.