On 14 Feb 2011, at 08:14, craayzie wrote:

> So weird. I run the migration but it does nothing to db/schema.rb:
> 
>  add_index "snippets", ["name", "site_id"], :name =>
> "index_snippets_on_name_and_site_id", :unique => true
>  add_index "snippets", ["name"], :name => "name", :unique => true
> 
> Here's the exact migration:
> 
> $ cat db/migrate/004_migration4.rb
> class AddSiteIdIndex < ActiveRecord::Migration
>  def self.up
>    remove_index :snippets, :name
>  end

It's probably the named index, and me being too hasty. Try

        remove_index :snippets, :name => 'name'

will

Reply via email to