Remove type cast, change relationships migration