class AddSlugToPhotos < ActiveRecord::Migration
  def change
    add_column :photos, :slug, :string
    add_index :photos, :slug

    Photo.initialize_urls
  end
end

class AddSlugToPhotos < ActiveRecord::Migration
  def change
    add_column :photos, :slug, :string
    add_index :photos, :slug
  end
end

Fix db:migrate after removing photo slugs
Fix db:migrate after removing photo slugs
