diff --git a/db/migrate/20111012215141_move_photos_to_their_own_table.rb b/db/migrate/20111012215141_move_photos_to_their_own_table.rb index 77604f756..21dedf0cf 100644 --- a/db/migrate/20111012215141_move_photos_to_their_own_table.rb +++ b/db/migrate/20111012215141_move_photos_to_their_own_table.rb @@ -1,6 +1,7 @@ class MovePhotosToTheirOwnTable < ActiveRecord::Migration def self.up create_table "photos", :force => true do |t| + t.integer "tmp_old_id", :null => true t.integer "author_id", :null => false t.boolean "public", :default => false, :null => false t.string "diaspora_handle" @@ -18,18 +19,26 @@ class MovePhotosToTheirOwnTable < ActiveRecord::Migration t.integer "comments_count" end - execute < 20111021184041) do add_index "people", ["owner_id"], :name => "index_people_on_owner_id", :unique => true create_table "photos", :force => true do |t| + t.integer "tmp_old_id" t.integer "author_id", :null => false t.boolean "public", :default => false, :null => false t.string "diaspora_handle"