diff --git a/db/migrate/20110527135552_photo_status_message_association_on_guid.rb b/db/migrate/20110527135552_photo_status_message_association_on_guid.rb
index 19f7105e32c62f70e8cbbf15306d9f8a8987e1a4..a48759d71b4718b4f807e900592c9cbd202c2dbc 100644
--- a/db/migrate/20110527135552_photo_status_message_association_on_guid.rb
+++ b/db/migrate/20110527135552_photo_status_message_association_on_guid.rb
@@ -7,7 +7,7 @@ class PhotoStatusMessageAssociationOnGuid < ActiveRecord::Migration
   def self.up
     add_column :posts, :status_message_guid, :string
 
-    ActiveRecord::Base.record_timestamps = false
+    Post.record_timestamps = false
     photos = Post.where(Post.arel_table[:status_message_id].not_eq(nil).and(Post.arel_table[:type].eq('Photo')))
     photos.each do |photo|
       if Post.where(:id => photo.status_message_id).exists?
@@ -27,7 +27,7 @@ class PhotoStatusMessageAssociationOnGuid < ActiveRecord::Migration
   def self.down
     add_column :posts, :status_message_id, :integer
 
-    ActiveRecord::Base.record_timestamps = false
+    Post.record_timestamps = false
     photos = Post.where(Post.arel_table[:status_message_guid].not_eq(nil).and(Post.arel_table[:type].eq('Photo')))
     photos.each do |photo|
       if Post.where(:guid => photo.status_message_guid).exists?