Earlier whenever we wanted to create a HABTM join table, we do this like: Now, in edge rails after this commit we can use a migration helper for the same:

Read more at the source