Relationships in RoR

That doesn’t matter. Migrations are for creating the tables in the database. Once you run the rake migrate command, both tables will be created, and it doesn’t matter what order they will be created in, you’ll end up with the same result.