I already migrated a table called units with several columns. I was wondering how to migrate in a stand alone \'add_index\' to this table using the cmd. Is this code correct:
The self.up method is correct. Use this for your self.down:
remove_index :units, :column => :lesson_id