I’m a newbie in RoR.
In order to create a table I’ve created a migration with the ‘rails
generate model…’ command.
Now I would like to add a composite index over two columns of this
table with another, new, migration.
Is it possible?
I’ve read the documentation about the add_index transformation but I
can’t create the new migration from command line.
I think I can edit the ‘create table’ migration file, but I would like
to have a different migration (generated by ‘rails’ command).
Thanks in advance for your help,