Rails automatically creates 'id' as a primary key, so you don't need to explicitly add an index on 'id'.