@devondahon Oh, I see. The problem was probably due to the order of the methods because the references() (or on()) method returns a ForeignKeyDefinition. So it was probably “too late” to set nullable() or unique(). I haven’t tested it though. Give it a try.