DROP INDEX ....

Hello

In my migration, I created index as follows:
  def self.up
    add_index :users, :facebook_id
    add_index :references, [:referencing_user_id, :created_at]
....
and

  def self.down
    remove_index :users, :facebook_id
    remove_index :references, [:referencing_user_id, :created_at]

working fine when creating ..

== 7 AddIndexes: migrating

Hello

In my migration, I created index as follows:
def self.up
   add_index :users, :facebook_id
   add_index :references, [:referencing_user_id, :created_at]
....
and

def self.down
   remove_index :users, :facebook_id
   remove_index :references, [:referencing_user_id, :created_at]

The bad thing here seems to be that rails should be quoting that table name. The easiest way would probably to write out the sql statement yourself.

Fred